error installing due to 'dezalgo' package
See original GitHub issueI’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 withnpm 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:
- Created 6 years ago
- Reactions:5
- Comments:13 (11 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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):
npm install
aurelia-cli
’s dependency onnpm
to 5.0.0 or aboveAs 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 usenpm 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:
{ "dependencies": {"npm": "^4.6.1" } }
{ "dependencies": {"npm": "^5.0.0" } }
world is moving towards yarn