This repository was archived by the owner on Aug 11, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3k
This repository was archived by the owner on Aug 11, 2022. It is now read-only.
Error: Cannot find module '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js' #20163
Copy link
Copy link
Closed
Description
I'm opening this issue because:
- npm is crashing.
- npm is producing an incorrect install.
- npm is doing something I don't understand.
- npm is producing incorrect or undesirable behavior.
- Other (see below for feature requests):
What's going wrong?
With 5.6.0 and 5.7.1 I can install, I think it is userid
package (but others as well), but with 5.8.0 I get this error:
error An unexpected error occurred: "/home/patrikx3/Projects/patrikx3/p3x/ramdisk/node_modules/userid: Command failed.
Exit code: 1
Command: sh
Arguments: -c node-gyp rebuild
Directory: /home/patrikx3/Projects/patrikx3/p3x/ramdisk/node_modules/userid
Output:
module.js:545
throw err;
^
Error: Cannot find module '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js'
at Function.Module._resolveFilename (module.js:543:15)
at Function.Module._load (module.js:470:25)
at Function.Module.runMain (module.js:690:10)
at startup (bootstrap_node.js:194:16)
I shows, that this file is missing in 5.8.0:
patrikx3@workstation:~/Projects/patrikx3/p3x$ ll /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
-rwxr-xr-x 1 root root 3596 Mar 25 17:07 /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
patrikx3@workstation:~/Projects/patrikx3/p3x$ npm -v
5.7.1
patrikx3@workstation:~/Projects/patrikx3/p3x$ sudo npm i -g npm
/usr/bin/npm -> /usr/lib/node_modules/npm/bin/npm-cli.js
/usr/bin/npx -> /usr/lib/node_modules/npm/bin/npx-cli.js
+ npm@5.8.0
added 44 packages from 18 contributors, removed 54 packages and updated 31 packages in 5.437s
patrikx3@workstation:~/Projects/patrikx3/p3x$ npm -v
5.8.0
patrikx3@workstation:~/Projects/patrikx3/p3x$ ll /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
ls: cannot access '/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js': No such file or directory
patrikx3@workstation:~/Projects/patrikx3/p3x$
How can the CLI team reproduce the problem?
supporting information:
npm -v
prints: 5.8.0node -v
prints: 9.9.0npm config get registry
prints: https://npm.patrikx3.com (I think it is not because my npm registry)- Windows, OS X/macOS, or Linux?: Linux
- Network issues: no
- Geographic location where npm was run:
- I use a proxy to connect to the npm registry.
- I use a proxy to connect to the web.
- I use a proxy when downloading Git repos.
- I access the npm registry via a VPN
- I don't use a proxy, but have limited or unreliable internet access.
- Container:
- I develop using Vagrant on Windows.
- I develop using Vagrant on OS X or Linux.
- I develop / deploy using Docker.
- I deploy to a PaaS (Triton, Heroku).
What's the feature?
This file in 5.8.0 is missing:
/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js
What problem is the feature intended to solve?
Gyp.
Is the absence of this feature blocking you or your team? If so, how?
NPM 5.8.0
Is this feature similar to an existing feature in another tool?
Nope
Is this a feature you're prepared to implement, with support from the npm CLI team?
Just missing a package.
Bellow 5.8.0, I can see node-gyp
:
patrikx3@workstation:/usr/lib/node_modules/npm$ ll node_modules/ | grep gyp
drwxr-xr-x 8 patrikx3 patrikx3 4096 Mar 25 17:15 node-gyp
npm -v
patrikx3@workstation:/usr/lib/node_modules/npm$ npm -v
5.7.1
k2s, swiftanthony, daikiuk, julientregoat, rrobinson3542 and 17 morep3x-robot
Metadata
Metadata
Assignees
Labels
No labels