Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

`npm install` gives ENOENT errno -2 re missing dezalgo module

Tags:

npm-install

I'm trying to run npm install for a little ember-driven site that I've got, but it throws the following error:

npm ERR! path /Projects/Etc/Admin/cuscus/node_modules/npm/node_modules/dezalgo
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename '/Projects/Etc/Admin/cuscus/node_modules/npm/node_modules/dezalgo' -> '/Projects/Etc/Admin/cuscus/node_modules/npm/node_modules/.dezalgo.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/mick/.npm/_logs/2018-01-09T01_18_51_322Z-debug.log

If I delete the node_modules directory completely then run npm install again it seems to work, but running it again fails.

like image 328
Mick Byrne Avatar asked Dec 11 '25 16:12

Mick Byrne


1 Answers

What you can try is:

  1. Be sure that you use cmd promt in Admin mode.

  2. If you use VS Code, kill all node procceses. Close it and try again.

  3. Delete package-lock.json and node-modules folder and try again.
  4. Change the node version. For example try the old one v6.11.2
  5. Try to do npm cache clean --force
  6. Try to remove {package}.DELETE in ~/AppData/Roaming/npm/node_modules after the initial npm i -g {package} and retry npm i -g {package}

One of it can help. But not for sure. The status of issue with this problem is open for the moment. https://github.com/npm/npm/issues/17444

like image 53
Chelovek Kemerovo Avatar answered Dec 13 '25 19:12

Chelovek Kemerovo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!