question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm install does not work

See original GitHub issue

when i am trying to install npm this error is showing up. I tried cleaning cache, deleting node_modules, reinstalling node.js and installing n_ package manually and the problem is still exist.

`npm pack lodash@^3 ; targz extract lodash-3.*.tgz extraneous/lodash3

npm ERR! addLocal Could not install C:\Users\Sinan\Desktop\creosafe\node_modules\n_;

npm ERR! Windows_NT 10.0.15063

npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “pack” “lodash@3” “;” “targz” “extract” “lodash-3.*.tgz” “extraneous/lodash3”

npm ERR! node v6.11.0

npm ERR! npm v3.10.10

npm ERR! path C:\Users\Sinan\Desktop\creosafe\node_modules\n_;

npm ERR! code ENOENT

npm ERR! errno -4058

npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\Sinan\Desktop\creosafe\node_modules\n_;’

npm ERR! enoent ENOENT: no such file or directory, open ‘C:\Users\Sinan\Desktop\creosafe\node_modules\n_;’

npm ERR! enoent This is most likely not a problem with npm itself

npm ERR! enoent and is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! Please include the following file with any support request:

npm ERR! C:\Users\Sinan\Desktop\creosafe\node_modules\n_\npm-debug.log

npm ERR! Windows_NT 10.0.15063

npm ERR! argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “install”

npm ERR! node v6.11.0

npm ERR! npm v3.10.10

npm ERR! code ELIFECYCLE

npm ERR! n_@1.4.4 postinstall: npm pack lodash@^3 ; targz extract lodash-3.*.tgz extraneous/lodash3

npm ERR! Exit status 4294963238

npm ERR!

npm ERR! Failed at the n_@1.4.4 postinstall script ‘npm pack lodash@^3 ; targz extract lodash-3.*.tgz extraneous/lodash3’.

npm ERR! Make sure you have the latest version of node.js and npm installed.

npm ERR! If you do, this is most likely a problem with the n_ package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! npm pack lodash@^3 ; targz extract lodash-3.*.tgz extraneous/lodash3

npm ERR! You can get information on how to open an issue for this project with:

npm ERR! npm bugs n_

npm ERR! Or if that isn’t available, you can get their info via:

npm ERR! npm owner ls n_

npm ERR! There is likely additional logging output above. ``

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
borisdiakurcommented, Aug 17, 2017

@webernir Yes, you can disable all scripts using the --ignore-scripts argument which will cause npm to not execute any scripts defined in the package.json.

npm install n_ -g --ignore-scripts
0reactions
webernircommented, Aug 17, 2017

@borisdiakur Thank you. it worked 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >
This npm install is not working on Windows - node.js
This npm install is not working on Windows · ran it as admin, · tried npm install -g · restarted the XAMPP server...
Read more >
Common errors | npm Docs
Possible temporary npm registry glitch, or corrupted local server cache. Run npm cache clean and/or try again later. · This can be caused...
Read more >
Why does NPM install not work? - Quora
The Npm command not found error can appear when you install or upgrade npm. On Windows, the cause of this error could be...
Read more >
npm command not found | Career Karma
What is the npm command not found Error? ... The Npm command not found error can appear when you install or upgrade npm....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found