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.

error installing due to 'dezalgo' package

See original GitHub issue

I’m submitting a bug report

  • Library Version: 0.32.0

Please tell us about your environment:

  • Operating System: Linux (Mint 18)

  • Node Version: 8.9.4

  • NPM Version: 5.6.0 Current behavior: Installing via npm locally (no -g) the package fails. I’m installing with npm install aurelia-cli

1019 verbose stack Error: ENOENT: no such file or directory, rename '/home/shawn/node_modules/aurelia-cli/node_modules/npm/node_modules/dezalgo' -> '/home/shawn/node_modules/aurelia-cli/node_modules/npm/node_modules/.dezalgo.DELETE'
1020 verbose cwd /home/shawn
1021 verbose Linux 4.10.0-42-generic
1022 verbose argv "/home/shawn/node-v8.9.4-linux-x64/bin/node" "/home/shawn/bin/npm" "install" "aurelia-cli"
1023 verbose node v8.9.4
1024 verbose npm  v5.6.0
1025 error path /home/shawn/node_modules/aurelia-cli/node_modules/npm/node_modules/dezalgo
1026 error code ENOENT
1027 error errno -2
1028 error syscall rename
1029 error enoent ENOENT: no such file or directory, rename '/home/shawn/node_modules/aurelia-cli/node_modules/npm/node_modules/dezalgo' -> '/home/shawn/node_modules/aurelia-cli/node_modules/npm/node_modules/.dezalgo.DELETE'
1030 error enoent This is related to npm not being able to find a file.
1031 verbose exit [ -2, true ]

As a workaround, if I first install dezalgo (e.g. npm install dezalgo) then install the cli it works.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:5
  • Comments:13 (11 by maintainers)

github_iconTop GitHub Comments

8reactions
fkleuvercommented, Feb 14, 2018

This is directly related to the way package-lock.json is resolved since npm@5.6.0. For aurelia-cli it happens because of the dependency on npm@3.10.8 as somewhat clarified here and here.

Possible workarounds (pick any):

  • Downgrade global npm version to 5.5.1
  • Delete package-lock.json and/or node_modules folder prior to npm install
  • Upgrade aurelia-cli’s dependency on npm to 5.0.0 or above

As for the third option; I actually forked aurelia-cli and upgraded it’s dependency on npm to 5.6.0, did the npm link dance and I just use npm link whenever I need aurelia-cli as a dependency. The problem hasn’t occurred for me since, through multiple projects.

Is there any particular reason aurelia-cli depends on npm@^3.10.8? Otherwise why not just upgrade that dependency and be done with this silly issue?

For completeness sake, the repro:

  1. npm install -g npm@5.6.0
  2. Create a new folder with the following package.json: { "dependencies": {"npm": "^4.6.1" } }
  3. npm install -> success
  4. npm install again -> fails
  5. Delete node_modules and package-lock.json, then change package.json to: { "dependencies": {"npm": "^5.0.0" } }
  6. npm install -> success
  7. npm install again -> success
  8. npm install -g npm@5.5.1
  9. Repeat steps 2-7; the difference is that step 4 will succeed
6reactions
Alexander-Tarancommented, Feb 14, 2018

world is moving towards yarn

Read more comments on GitHub >

github_iconTop Results From Across the Web

`npm install` gives ENOENT errno -2 re missing dezalgo module
Try to delete the package-lock.json file. Run the npm install command and you should be fine. The last thing you should try doing...
Read more >
Node:latest npm fails - Build Environment - CircleCI Discuss
1st of all this is not running on windows. 2nd node is being installed from the official docker image. 3rd the error is...
Read more >
standard-engine | Yarn - Package Manager
Wrap your own eslint rules in a easy-to-use command line tool and/or a JS module. Install. npm install standard-engine. Who is using standard ......
Read more >
detect-installed - npm
Checks that given package is installed globally or locally. ... and errors of sync or asynchronous functions, using once and dezalgo libs.
Read more >
How to fix: npm ERR! enoent ENOENT: no such file or ...
I recently struggled for a while with an npm error thrown when executing npm install of some package. The error message was 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