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] npx command not install latest package #4871

Closed
2 tasks done
caohuilin opened this issue May 9, 2022 · 0 comments · Fixed by #4929
Closed
2 tasks done

[BUG] npx command not install latest package #4871

caohuilin opened this issue May 9, 2022 · 0 comments · Fixed by #4929
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

@caohuilin
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

I runned npx create-react-app to create react project three months ago. The create-react-app package version is v4.0.3.
Now, I want to run run npx create-react-app to create react project, but npx command not install create-react-app package latest version.
飞书20220509-203144
I never install create-react-app use -g params.

Expected Behavior

npx command install create-react-app package latest version

Steps To Reproduce

  1. create a test package and npm publish it
  2. run npx
  3. bump package version and publish it
  4. run npx
  5. version not update

Environment

  • npm: 8.9.0
  • Node.js: 16.15.0
  • OS Name: macOS
  • System Model Name:10.15.7
  • npm config:
; "user" config from /Users/admin/.npmrc

//registry.npmjs.org/:_authToken = (protected)
access = "public"

; "project" config from /Users/admin/.nvm/.npmrc

package-lock = false

; node bin location = /Users/admin/.nvm/versions/node/v14.19.0/bin/node
; node version = v14.19.0
; npm local prefix = /Users/admin/.nvm
; npm version = 8.9.0
; cwd = /Users/admin/.nvm/versions/node/v16.15.0
; HOME = /Users/admin
; Run `npm config ls -l` to show all defaults.
; copy and paste output from `npm config ls` here
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