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, rename dezalgo #420

Closed
1 task done
veeramarni opened this issue Feb 13, 2018 · 15 comments
Closed
1 task done

no such file or directory, rename dezalgo #420

veeramarni opened this issue Feb 13, 2018 · 15 comments
Labels

Comments

@veeramarni
Copy link

  • node version: 8.9.4
  • npm version: 5.6.0
  • npm-check-updates version: 2.14.0

Received followign error today only.

npm ERR! path //development/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 '//node_modules/npm/node_modules/dezalgo' -> '//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

@sergiubologa
Copy link

Same thing happens to me.

@danawoodman
Copy link

Same issue here. Installing npm-check-updates breaks npm and removing it fixes it. Using node v9.5.0 and npm v5.6.0

@fernamp
Copy link

fernamp commented Feb 19, 2018

Same here. It just works when is installed globally.

@speige
Copy link

speige commented Feb 21, 2018

+1

1 similar comment
@alittletf
Copy link

+1

@raineorshine
Copy link
Owner

raineorshine commented Feb 25, 2018

This is due to an old version of npm being included as a dependency. This should be removed and the system npm should be used to make ncu more agnostic to the npm version (see multiple issues). In the mean time, I have upgraded the npm dependency and published to v3.0.0-alpha1. Let me know if this corrects the problem, and I will push it to latest:

npm uninstall -g npm-check-updates
npm install -g npm-check-updates@v3-alpha

@reft
Copy link

reft commented Feb 25, 2018

@raineorshine did not help me.

npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Projects\X\src\X.Web\node_modules\aurelia-cli\node_modules\npm\node_modules\dezalgo' -> 'C:\Projects\X\src\X.Web\node_modules\aurelia-cli\node_modules\npm\node_modules.dezalgo.DELETE'

@alittletf
Copy link

@raineorshine Yeah right after i posted i thought i was on npm 5.6 but i was actually on 4.6.1. What was confusing me is when I went npm -v it showed 5.6 but I noticed i was on 4.6.1 in my package.json. Anyway I upticked to the latest npm in my package.json and it solved my problem.

@raineorshine
Copy link
Owner

raineorshine commented Feb 28, 2018

@reft I was made aware that npmi also needed to be upgraded. Make sure you uninstall the package first, too. Can you try this now?

npm uninstall -g npm-check-updates
npm install -g npm-check-updates@v3-alpha

@franher
Copy link

franher commented Mar 2, 2018

@raineorshine I just test npm-check-updates@v3-alpha it and the issue is not reproducible again.

node -> v8.9.4
npm -> v5.6.0

Is it going to be published as a definitive release?

@raineorshine
Copy link
Owner

@franher It will be published as v3, but the intention is to include the other breaking changes. I am watching the repo and doing fixes where I can, but there are currently no active developers on npm-check-updates.

@trippingtarballs
Copy link

"Same issue here. Installing npm-check-updates breaks npm and removing it fixes it. Using node v9.5.0 and npm v5.6.0"

As a workaround I've been using;

$ npx npm-check-updates -e 1

Read about npx.

Love npm-check-updates 😍 Thank you for maintaining such a helpful package!

jamesward added a commit to salesforce/octoviolet that referenced this issue Mar 14, 2018
abernix added a commit to apollographql/apollo-server that referenced this issue Apr 11, 2018
It appears that the intention of including `npm-check-updates` in this
repository was to provide an easy way to update dependent packages from the
console.  This was originally introduced in [Ref 0].

Unfortunately, the `npm-check-updates` package has an explicit dependency on
`npm@3`, which means that it includes the entire `npm` in its
`node_modules`.

I originally observed this when analyzing the test failures in [Ref 1] and
[Ref 2] which indicated (in its npm error) that the npm version was v3.10.10.

The explanation for this is relatively straight-forward: Older versions of
npm uses an nested tree of `node_modules` directories while newer versions
hoist `node_modules` (i.e. flatten) to the highest location possible and
only nesting dependencies to meet conflicting version constraints.

Unfortunately, that means that once `npm@3` was installed by the newer
`npm@5` as a dependency of `npm-check-updates`, it was hoisted to the
top-level `node_modules` directory, exposing `npm@3` to `npm-scripts` which
directly call `npm` commands on the nested packages, as is done on this
monorepo (with, for example the `postinstall` script which runs `npm run
compile` in each of the server middleware packages). :face_palm:

Overall, this package doesn't seem to provide enough value for us to
continue to include it, especially since we have Renovate - coupled with the
same information being available from `npm outdated` and `npm update`
commands.  I'm not sure why we would want to install newer versions than our
"package.json" allows.

Futhermore, looking at the issue tracker on `npm-check-updates`, I'm
assuming this is the reason I've seen "`dezalgo`" install errors [Ref 3] on
this repository recently and _possibly_ even a bizarrely corrupted npm cache
I encountered recently (though admittedly, that could be a stretch).

See also: [Ref 4].

[Ref 0]: d7ca07f7
[Ref 1]: https://circleci.com/gh/apollographql/apollo-server/1915
[Ref 2]: https://app.netlify.com/sites/apollo-server-docs/deploys/5acdd3b7
[Ref 3]: raineorshine/npm-check-updates#420
[Ref 4]: raineorshine/npm-check-updates#423
abernix added a commit to apollographql/apollo-server that referenced this issue Apr 17, 2018
It appears that the intention of including `npm-check-updates` in this
repository was to provide an easy way to update dependent packages from the
console.  This was originally introduced in [Ref 0].

Unfortunately, the `npm-check-updates` package has an explicit dependency on
`npm@3`, which means that it includes the entire `npm` in its
`node_modules`.

I originally observed this when analyzing the test failures in [Ref 1] and
[Ref 2] which indicated (in its npm error) that the npm version was v3.10.10.

The explanation for this is relatively straight-forward: Older versions of
npm uses an nested tree of `node_modules` directories while newer versions
hoist `node_modules` (i.e. flatten) to the highest location possible and
only nesting dependencies to meet conflicting version constraints.

Unfortunately, that means that once `npm@3` was installed by the newer
`npm@5` as a dependency of `npm-check-updates`, it was hoisted to the
top-level `node_modules` directory, exposing `npm@3` to `npm-scripts` which
directly call `npm` commands on the nested packages, as is done on this
monorepo (with, for example the `postinstall` script which runs `npm run
compile` in each of the server middleware packages). :face_palm:

Overall, this package doesn't seem to provide enough value for us to
continue to include it, especially since we have Renovate - coupled with the
same information being available from `npm outdated` and `npm update`
commands.  I'm not sure why we would want to install newer versions than our
"package.json" allows.

Futhermore, looking at the issue tracker on `npm-check-updates`, I'm
assuming this is the reason I've seen "`dezalgo`" install errors [Ref 3] on
this repository recently and _possibly_ even a bizarrely corrupted npm cache
I encountered recently (though admittedly, that could be a stretch).

See also: [Ref 4].

[Ref 0]: d7ca07f7
[Ref 1]: https://circleci.com/gh/apollographql/apollo-server/1915
[Ref 2]: https://app.netlify.com/sites/apollo-server-docs/deploys/5acdd3b7
[Ref 3]: raineorshine/npm-check-updates#420
[Ref 4]: raineorshine/npm-check-updates#423
@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

@nhhockeyplayer
Copy link

whats so bad about
https://www.npmjs.com/package/npm-check

@raineorshine
Copy link
Owner

Fixed in the upcoming release v3.

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

No branches or pull requests