I’m getting this error when using node v18 linux . (works on 16 and 14 and windows with version 18)
e[0K$ nvm install node
Downloading and installing node v18.0.0...
Downloading https://nodejs.org/dist/v18.0.0/node-v18.0.0-linux-x64.tar.xz...
Computing checksum with sha256sum
Checksums matched!
Now using node v18.0.0 (npm v)
travis_time:end:0cc244b0:start=1650457117026572710,finish=1650457121482625775,duration=4456053065,event=setup
e[0Ktravis_fold:end:nvm.install
e[0K
node: /lib/x86_64-linux-gnu/libm.so.6: version `GLIBC_2.27' not found (required by node)
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.25' not found (required by node)
node: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.28' not found (required by node)
e[31;1mThe command "npm config set spin false" failed and exited with 1 during .e[0m
Your build has been stopped.
Hi, can someone describe this more, in terms of:
cause → effect → what happens over time → what should Travis end user do?
I have a .travis.yml for a build, and obviously I tried to keep it as generic and minimalist as possible. It has
dist: bionic
language: node_js
node_js: "stable"
The “stable” does raise questions about Node.js v18: Is someone going to fix something? It seems unfortunate that (for me) it is not stable, because the Node or Linux people did an “intentional” breaking change.
My file has another config
env:
global:
- NODE_ENV=development
Now this - Is this where I could improve things by not referring to “development” but “production”?
What I’m asking is, how can I be asked to code in a version like 17? If my project sits and does occasional builds for years, going forward - if I forget that I did this workaround - then I’m not running latest stuff, I’m not gaining the value of auto-updating, auto-dependencies, the slickness of Docker images etc. Thoughts about this? Thanks
It was easy to get past the “intentional” breakage for node users. Sometimes info on these technical issues is not that visible or helpful, so I’m gonna describe it:
Thanks for posting this. Unfortunately, this configuration still broke with the same error about “npm config set spin false” for me. Downgrading to Node v16 (the previous LTS version) fixed things. Posting this in case it is helpful to others.
I just started seeing this for Node.js 19 with Focal, but Node.js 18 with Focal is fine. It’s unrelated to GLIBC; the reason for the error with Node.js 19 is that the spin configuration parameter no longer exists, and npm@9 includes this in the changelog: