Closed
Description
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
- Download local-npx-scripts.zip
- Run npm install
- Run
npm run error
- 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.```