Quantcast
Channel: npm install error code 128 - Stack Overflow
Viewing all articles
Browse latest Browse all 15

Answer by Archdoog for npm install error code 128

$
0
0

In my case I had just upgraded npm and package-lock.json was trying to install one of the project's packages from an unavailable git commit version.

Deleting and letting npm re-create the file package-lock.json resolved the issue.

rm package-lock.json

Note: It looks like package-lock.json maintains more details about the node_modules tree, so in a complicated/version specific project it may be important to isolate the specific line(s) causing the issue, versus just delete the package-lock.json file.

https://docs.npmjs.com/files/package-lock.json


Viewing all articles
Browse latest Browse all 15

Trending Articles