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
how to upgrade package manager itself #161
Comments
I would suggest using https://github.com/antfu/contribute#corepack so you don't even need to worry about that |
The only slightly inconvenient aspect is that if I don't use Corepack or other tools to lock the package manager version, I can only manually determine which package manager is being used to perform global installation and upgrades, for example:
em... what should I do in this situation? Thank you! |
Use run |
This is a good approach, but there are situations where it is not possible to update the versions of both npm and other package managers simultaneously #5621. Therefore, I am looking for a tool that can call the package manager to solve this problem, and I am still looking for possible answers. Thank you for your response. |
Clear and concise description of the problem
I would like to upgrade pnpm before installing it. It would be nice if I could use the command
npx @antfu/ni upgrade self
to upgrade the version of pnpm on my CI insteadnpm install -g pnpm
Suggested solution
npx @antfu/ni upgrade self
Alternative
Validations
The text was updated successfully, but these errors were encountered: