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

Error installing package in Node 14.x #1207

Closed
dylankelly opened this issue Oct 18, 2022 · 6 comments
Closed

Error installing package in Node 14.x #1207

dylankelly opened this issue Oct 18, 2022 · 6 comments

Comments

@dylankelly
Copy link

  • [ x] I have searched for similar issues
  • [ x] I am using the latest version of npm-check-updates
  • [ x] I am using node >= 14.14

Steps to Reproduce

  • Use Node version 14 lts/fermium (14.20.1)
  • Run npx npm-check-updates (also true when installing globally npm install -g npm-check-updates)

Dependencies:

Steps:

Current Behaviour

Error unable to find file in dependency - @npmcli/installed-package-contents/index.js

❯ nvm install lts/fermium
v14.20.1 is already installed.
Now using node v14.20.1 (npm v6.14.17)
❯ npx npm-check-updates
npm ERR! code ENOENT
npm ERR! syscall chmod
npm ERR! path /Users/dylankelly/.npm/_npx/70756/lib/node_modules/npm-check-updates/node_modules/@npmcli/installed-package-contents/index.js
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, chmod '/Users/dylankelly/.npm/_npx/70756/lib/node_modules/npm-check-updates/node_modules/@npmcli/installed-package-contents/index.js'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Expected Behaviour

npm-check-updates installs correctly

@dylankelly
Copy link
Author

This seems to be an issue with @npmcli/installed-package-contents - have reported this here npm/installed-package-contents#24. Leaving this issue for visibility.

@meganwalker-ibm
Copy link

I think it might arguably be a "breaking-change-in-a-patch-release" problem with pacote - installing pacote@15.0.0 works fine on npm@6; but pactoe@15.0.1 does not. In that patch version they pulled in a new major version of installed-package-contents
npm/pacote#231

@wraithgar
Copy link

If I had to guess this is an existing bug in npm 6 that is now being raised because of a dependency that was previously hoisted now not being hoisted. I don't know if it's a bug in any of these dependencies, the "breaking changes" were in the engines field only for the most part.

@raineorshine
Copy link
Owner

I have downgraded pacote to 15.0.0 until the installed-package-contents bug is fixed.

Try the latest npm-check-updates @ v16.3.14

@wraithgar
Copy link

@raineorshine
Copy link
Owner

Issue has been fixed in dependencies and dependency chain has been updated.

Published in v16.3.20.

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

No branches or pull requests

4 participants