You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running n auto without curl or wget installed, the command exits 1 silently without an error:
root@e5c39cb1f5fa:/workspace# n auto
found : /workspace/.nvmrc
read: 14.15.4
installing : node-v14.15.4
root@e5c39cb1f5fa:/workspace# echo$?
1
Steps to Reproduce
Dockerfile as such:
FROM node:15.6.0-buster-slim
RUN npm install -g n
And run n auto in a repo with a file such as .nvmrc
Expected Behaviour
Some indication as to what the error is, such as when I run n latest I get:
root@e5c39cb1f5fa:/workspace# n latest
Error: curl or wget command required
Error: failed to download version index (https://nodejs.org/dist/index.tab)
Actual Behaviour
Silent exits with code 1
Configuration Details
$ n --version
7.0.0
$ command -v node
/usr/local/bin/node
$ node -p process.platform
linux
The text was updated successfully, but these errors were encountered:
Bug Report
Summary
When running
n auto
without curl or wget installed, the command exits 1 silently without an error:Steps to Reproduce
Dockerfile as such:
And run
n auto
in a repo with a file such as .nvmrcExpected Behaviour
Some indication as to what the error is, such as when I run
n latest
I get:Actual Behaviour
Silent exits with code 1
Configuration Details
$ n --version 7.0.0 $ command -v node /usr/local/bin/node $ node -p process.platform linux
The text was updated successfully, but these errors were encountered: