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

No such file or directory renaming .dezalgo.DELETE #7

Closed
lesander opened this issue Jan 20, 2018 · 21 comments
Closed

No such file or directory renaming .dezalgo.DELETE #7

lesander opened this issue Jan 20, 2018 · 21 comments

Comments

@lesander
Copy link

Hi there!

When installing/updating a project of mine using npm install, I ran across the following problem with dezalgo:

npm ERR! enoent ENOENT: no such file or directory, rename '/Users/sander/Repositories/project/node_modules/npm/node_modules/dezalgo' -> '/Users/sander/Repositories/project/node_modules/npm/node_modules/.dezalgo.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.

This seems to have occured out of the blue, so I wondered if this has anything to do with the dezalgo package?


Full debug log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'i',
1 verbose cli   '--reinstall' ]
2 info using [email protected]
3 info using [email protected]
4 verbose npm-session 09a7132d3aa76b8c
[...]
15 silly idealTree [email protected]
15 silly idealTree ├─┬ [email protected]
15 silly idealTree │ ├── [email protected]
[...]
18 silly diffTrees add [email protected]
[...]
25 silly decomposeActions preinstall [email protected]
26 silly decomposeActions build [email protected]
27 silly decomposeActions install [email protected]
28 silly decomposeActions postinstall [email protected]
29 silly decomposeActions finalize [email protected]
30 silly decomposeActions refresh-package-json [email protected]
[...]
70 silly finalize /Users/sander/Repositories/project/node_modules/npm/node_modules/dezalgo
[...]
72 silly saveTree [email protected]
72 silly saveTree ├─┬ [email protected]
72 silly saveTree │ ├─┬ [email protected]
72 silly saveTree │ │ ├─┬ [email protected]
[...]
74 verbose stack Error: ENOENT: no such file or directory, rename '/Users/sander/Repositories/project/node_modules/npm/node_modules/dezalgo' -> '/Users/sander/Repositories/project/node_modules/npm/node_modules/.dezalgo.DELETE'
75 verbose cwd /Users/sander/Repositories/project
76 verbose Darwin 17.3.0
77 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "i" "--reinstall"
78 verbose node v9.2.0
79 verbose npm  v5.6.0
80 error path /Users/sander/Repositories/project/node_modules/npm/node_modules/dezalgo
81 error code ENOENT
82 error errno -2
83 error syscall rename
84 error enoent ENOENT: no such file or directory, rename '/Users/sander/Repositories/project/node_modules/npm/node_modules/dezalgo' -> '/Users/sander/Repositories/project/node_modules/npm/node_modules/.dezalgo.DELETE'
85 error enoent This is related to npm not being able to find a file.
86 verbose exit [ -2, true ]
@aSegatto
Copy link

Same problem for me !

@Tang8330
Copy link

#6

@ngood97
Copy link

ngood97 commented Feb 7, 2018

I solved this problem by updating npm in my package.json to 5.6.0 (npm/npm#17444 (comment))

Update: I just ran into this issue again while running the now most recent version of npm and discovered that installing any dependencies with an older version of npm as a requirement also caused this error for me (npm-check-updates requires npm 3.10.10)

@vatsalpande
Copy link

I am already on version 5.6 and still facing this issue

@ogezue
Copy link

ogezue commented Feb 12, 2018

Still not fixed. Some dependy of mine is using dezalgo. --> Project build failing

@korczis
Copy link

korczis commented Feb 12, 2018

@ogezue deleting package-lock.json then reinstalling works for me.

paulcwatts added a commit to paulcwatts/ember-cli-rollbar that referenced this issue Feb 12, 2018
For some reason the old one was hitting this: isaacs/dezalgo#7
@marco-fp
Copy link

Same here, deleting package-lock.json and node_modules didn't work.

@gelevanog
Copy link

Guys, try to delete npm-check-updates dependency if it's installed. This should help

@danawoodman
Copy link

danawoodman commented Feb 15, 2018

I can verify that removing npm-check-updates fixed this for me. I assume it is an issue with that package instead?

Looks like it is an issue submitted here: raineorshine/npm-check-updates#420

@alittletf
Copy link

@marco-fp You ever get a fix? I am running into the same issue and deleting package-lock.json and node_modules did not work for me either...

@tmadison-gpsw
Copy link

tmadison-gpsw commented Mar 1, 2018

node 8.9.4
npm 5.6.0

It looks like this is happening with npm link as well...

Running rm -rf node_modules/npm before running npm link fixes it.

@Manimall
Copy link

Manimall commented Mar 17, 2018

2018-03-17_12-32-31
i think it's gonna be a decision//// npm i -g npm ////

@run1t
Copy link

run1t commented Mar 19, 2018

I had the same problem on:
node 9.8.0
npm 5.60

Updating npm to 5.7.1 seems to fix the problem.

@rebase-master
Copy link

Same problem

node 9.9.0
npm 5.6.0

Running rm -rf node_modules and npm i again fixes it but it's not the solution.

@mattc41190
Copy link

The node_modules two step work for me. Yuck.

rm -r node_modules
npm i

@smoebody
Copy link

I identified the depending package with

#$ npm ls dezalgo
..
`-- [email protected]
  `-- [email protected]
    +-- UNMET DEPENDENCY [email protected]
    +-- [email protected]
    | `-- UNMET DEPENDENCY [email protected]
    +-- [email protected]
    | `-- UNMET DEPENDENCY [email protected]
    `-- UNMET DEPENDENCY [email protected]
      `-- UNMET DEPENDENCY [email protected]

npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]
npm ERR! missing: [email protected], required by [email protected]

and removed npm-check-updates.

#$ npm uninstall npm-check-updates

Then I triggered install again

#$ npm install

and it finished successfully

@Mathijs003
Copy link

I had this issue too using npm v5.6.0, upgraded to 6.0.0 and now every installation works fine.

run npm i -g npm to upgrade

@Primajin
Copy link

as @danawoodman suggested, it worked best for me to just remove check updates, upgrade npm and then reinstall it

@litchian18
Copy link

deleting package-lock.json then reinstalling works for me.

SindreSvendby added a commit to nvbf/salt that referenced this issue Jun 28, 2018
@crobinson42
Copy link

I had this issue too using npm v5.6.0, upgraded to 6.0.0 and now every installation works fine.

run npm i -g npm to upgrade

@byteab
Copy link

byteab commented Aug 25, 2019

A simple Logical solution.
use Yarn instead

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