Skip to content
New issue

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

Error running 'npm install' #635

Open
macq55666 opened this issue Oct 25, 2019 · 1 comment
Open

Error running 'npm install' #635

macq55666 opened this issue Oct 25, 2019 · 1 comment

Comments

@macq55666
Copy link

macq55666 commented Oct 25, 2019

Current environemnt

node --version
v9.11.2
npm --version
6.12.0

I get the following error:

npm install node -g

> [email protected] preinstall /usr/lib/node_modules/node
> node installArchSpecificPackage

internal/modules/cjs/loader.js:550
    throw err;
    ^

Error: Cannot find module '/usr/lib/node_modules/node/installArchSpecificPackage'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:548:15)
    at Function.Module._load (internal/modules/cjs/loader.js:475:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:695:10)
    at startup (internal/bootstrap/node.js:201:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:516:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] preinstall: `node installArchSpecificPackage`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] preinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-10-25T13_14_43_151Z-debug.log

I tried deleting node_modules and trying again but still got the same error.

@Peter-Luber
Copy link

Did you ever figure this out?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants