We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I tried running the following from the README:
$ wget -O- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/master/npm-g-nosudo.sh | sh
It failed with this error:
--2022-02-05 00:50:21-- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/master/npm-g-nosudo.sh SSL_INIT Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt' Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 2606:50c0:8003::154, 2606:50c0:8000::154, 2606:50c0:8001::154, ... Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|2606:50c0:8003::154|:443... connected. HTTP request sent, awaiting response... 200 OK Length: 3961 (3.9K) [text/plain] Saving to: ‘STDOUT’ 0K ... 100% 3.32M=0.001s 2022-02-05 00:50:21 (3.32 MB/s) - written to stdout [3961/3961] Error: Cannot find module 'nopt' Require stack: - /usr/lib/node_modules/npm/node_modules/@npmcli/config/lib/index.js - /usr/lib/node_modules/npm/lib/npm.js - /usr/lib/node_modules/npm/lib/cli.js - /usr/lib/node_modules/npm/bin/npm-cli.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:999:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/config/lib/index.js:4:14) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:999:19) Error: Cannot find module 'nopt' Require stack: - /usr/lib/node_modules/npm/node_modules/@npmcli/config/lib/index.js - /usr/lib/node_modules/npm/lib/npm.js - /usr/lib/node_modules/npm/lib/cli.js - /usr/lib/node_modules/npm/bin/npm-cli.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:999:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/lib/node_modules/npm/node_modules/@npmcli/config/lib/index.js:4:14) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:999:19) sh: line 151: syntax error near unexpected token `)' sh: line 151: ` [Yy]* ) fix_env;;'
I also tried it with bash and not sh, and got the same result.
bash
sh
After running the command from the README, my npm install was nuked:
$ npm node:internal/modules/cjs/loader:933 const err = new Error(message); ^ Error: Cannot find module 'semver' Require stack: - /usr/lib/node_modules/npm/lib/utils/unsupported.js - /usr/lib/node_modules/npm/lib/cli.js - /usr/lib/node_modules/npm/bin/npm-cli.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:999:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (/usr/lib/node_modules/npm/lib/utils/unsupported.js:2:16) at Module._compile (node:internal/modules/cjs/loader:1097:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) at Module.load (node:internal/modules/cjs/loader:975:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:999:19) { code: 'MODULE_NOT_FOUND', requireStack: [ '/usr/lib/node_modules/npm/lib/utils/unsupported.js', '/usr/lib/node_modules/npm/lib/cli.js', '/usr/lib/node_modules/npm/bin/npm-cli.js' ] } Node.js v17.3.0
I had to reinstall npm, Node and some related packages in order to get a working system npm install again:
$ sudo pacman -S npm nodejs semver node-gyp nodejs-nopt
I'm on Manjaro with npm v8.4.0, Node v17.3.0, Bash v5.1.16 and wget v1.21.2.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I tried running the following from the README:
$ wget -O- https://raw.githubusercontent.com/glenpike/npm-g_nosudo/master/npm-g-nosudo.sh | sh
It failed with this error:
I also tried it with
bash
and notsh
, and got the same result.After running the command from the README, my npm install was nuked:
I had to reinstall npm, Node and some related packages in order to get a working system npm install again:
I'm on Manjaro with npm v8.4.0, Node v17.3.0, Bash v5.1.16 and wget v1.21.2.
The text was updated successfully, but these errors were encountered: