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] BREAKING REGRESSION 8.16.0: npx local-package breaks #5269

Closed
2 tasks done
jlarmstrongiv opened this issue Aug 5, 2022 · 0 comments · Fixed by #5273
Closed
2 tasks done

[BUG] BREAKING REGRESSION 8.16.0: npx local-package breaks #5269

jlarmstrongiv opened this issue Aug 5, 2022 · 0 comments · Fixed by #5273
Labels
Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release

Comments

@jlarmstrongiv
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/@clis%2flocal-cli-package - Not found
npm ERR! 404
npm ERR! 404  '@clis/local-cli-package@latest' is not in this registry.
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/user/.npm/_logs/2022-08-05T23_08_46_165Z-debug-0.log

Expected Behavior

Within an npm workspace, run npx @clis/local-cli-package as expected. Attached is a complete reproduction that works with npm@8.15.1, but errors on npm@8.16.0. Likely caused by #5244

Steps To Reproduce

  1. Download local-npx-scripts.zip
  2. Run npm install
  3. Run npm run error
  4. If using npm@8.16.0, record error. If running npm@npm@8.15.1, passes as expected

Environment

  • npm: 8.16.0
  • Node.js: v16.15.0
  • OS Name: macOS Monterey 12.4
  • System Model Name: Macbook Pro
  • npm config:
; "user" config from /Users/***/.npmrc

//registry.npmjs.org/:_authToken = (protected)
init-author-name = "***"
scripts-prepend-node-path = "auto"

; "env" config from environment

prefix = "/Users/***/.asdf/installs/nodejs/lts-gallium/.npm"

; node bin location = /Users/***/.asdf/installs/nodejs/16.15.0/bin/node
; node version = v16.15.0
; npm local prefix = /Users/***
; npm version = 8.16.0
; cwd = /Users/***
; HOME = /Users/***
; Run `npm config ls -l` to show all defaults.```
@jlarmstrongiv jlarmstrongiv added Bug thing that needs fixing Needs Triage needs review for next steps Release 8.x work is associated with a specific npm 8 release labels Aug 5, 2022
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 review for next steps Release 8.x work is associated with a specific npm 8 release
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant