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

[BUG] Error on install with Node 14 LTS #24

Closed
1 task done
dylankelly opened this issue Oct 18, 2022 · 5 comments · Fixed by #26
Closed
1 task done

[BUG] Error on install with Node 14 LTS #24

dylankelly opened this issue Oct 18, 2022 · 5 comments · Fixed by #26
Labels
Bug thing that needs fixing Needs Triage needs an initial review

Comments

@dylankelly
Copy link

dylankelly commented Oct 18, 2022

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Not working in node version 14 - using LTS 14.20.1. According to https://github.com/npm/installed-package-contents/releases/tag/v2.0.0 release notes, you are supporting Node version ^14.17.0

❯ 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 Behavior

installs correctly

Steps To Reproduce

  • Use Node version 14 lts/fermium (14.20.1)
  • npm install installed-package-contents

Environment

  • npm: 6.14.17
  • Node: v14.20.1
  • OS: Mac OSX 12.6
  • platform: Macbook Pro M1 ARM
@dylankelly dylankelly added Bug thing that needs fixing Needs Triage needs an initial review labels Oct 18, 2022
@dylankelly
Copy link
Author

Also raised in raineorshine/npm-check-updates#1207

@wraithgar
Copy link
Member

Have you tried this with the latest npm?

@dylankelly
Copy link
Author

@wraithgar have confirmed this is working correctly with NPM@8.19.2

@curtisman
Copy link

curtisman commented Oct 19, 2022

@lukekarrys Looks like this PR moved index.js to lib/index.js. But package.json's bin entry here still point it at the root.

@lukekarrys
Copy link
Member

Good catch, thanks for the issue 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Needs Triage needs an initial review
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants