-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Closed
Labels
Bugthing that needs fixingthing that needs fixingRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release
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
npx is running an old version of a script
I've checked to make sure it's not installed (globally or locally)
$ npm ls
rw@ /Users/tobbe/dev/redwood/rw
├── @redwoodjs/[email protected]
├─┬ [email protected] -> ./api
│ ├── @paypal/[email protected]
│ ├── @redwoodjs/[email protected]
│ ├── @redwoodjs/[email protected]
│ ├── [email protected]
│ ├── [email protected]
│ └── [email protected]
└─┬ [email protected] -> ./web
├── @emotion-icons/[email protected]
├── @emotion-icons/[email protected]
├── @react-google-maps/[email protected]
├── @redwoodjs/[email protected]
├── @redwoodjs/[email protected]
├── @redwoodjs/[email protected]
├── @redwoodjs/[email protected]
├── @sentry/[email protected]
├── @sentry/[email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]
$ npm list -g --depth 0
/opt/homebrew/lib
└── [email protected]
$ npx @redwoodjs/codemods --version
Need to install the following packages:
@redwoodjs/codemods
Ok to proceed? (y) y
0.38.3
$ npx @redwoodjs/codemods@latest --version
0.39.2
This issue is very similar #2329 but it's closed. So either this problem has come back again, or it wasn't truly fixed in the first place.
Expected Behavior
As long as the given package is not installed, I expect npx to always use the latest version
Steps To Reproduce
It's always reproducible with the steps given above in "Current Behavior", but I don't yet know if it's reproducible with any package, or just @redwoodjs/codemods
Environment
- npm: 8.1.4
- Node: 16.12.0
- OS: MacOS 11.6
- platform: M1
- npm config:
; "builtin" config from /opt/homebrew/lib/node_modules/npm/npmrc
prefix = "/opt/homebrew"
; "user" config from /Users/tobbe/.npmrc
//registry.npmjs.org/:_authToken = (protected)
; node bin location = /opt/homebrew/Cellar/node/16.12.0/bin/node
; cwd = /Users/tobbe/dev/redwood/rw
; HOME = /Users/tobbe
; Run `npm config ls -l` to show all defaults.
knilink, zao95, jtoar, geekagan, oliviertassinari and 1 more
Metadata
Metadata
Assignees
Labels
Bugthing that needs fixingthing that needs fixingRelease 8.xwork is associated with a specific npm 8 releasework is associated with a specific npm 8 release