Skip to content

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

Description

@jlarmstrongiv

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 [email protected], but errors on [email protected]. 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 [email protected], record error. If running npm@[email protected], 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.```

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Bugthing that needs fixingNeeds Triageneeds review for next stepsRelease 8.xwork is associated with a specific npm 8 release

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions