-
Notifications
You must be signed in to change notification settings - Fork 152
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
pnpm and npm should not be merged in the same command #68
Comments
At first, which OS are you using? Second, how do you let pnpm just update local packages? Third, what's the difference between running pnpm globally and running globally Fourth, this would probably just turn out to be a config setting like npm_global=bool, pnpm_global=bool |
I ran into a similar issue. I have
I would like to have a way to configure what should be the preferred way to update Node packages and |
Let's backtrack a little bit. When installing nodejs, it comes with its default package manager
For all intents and purposes, when it comes to In topgrade If you're familiar with python, maybe this analogy can help:
macOS 12
This is the same difference as using # this will install xxx globally on your machine and add the binary to PATH
pnpm install --global xxx
# this will check that your project has a package.json and will add the dependency locally
pnpm install xxx
|
This used to be a separate step that we could disable with |
This also makes the step completely fail for me now as I apparently have
I can only get any information about this failure when running topgrade with
|
Does someone want to fix this issue because their seems to be a lot of activity around it. Else I will do it. |
Working on moving pnpm to its own step, similarly to r-darwish/topgrade#963, it should be able to be enabled/disabled manually. In my initial commit I made the assumption that anyone using pnpm would use it to completely replace npm, now you can use them interchangeably. (My current local version still doesn't work, will send a PR when it is) |
Thanks for doing the work. |
@vedkothavade any updates on your local version? |
Been pretty busy this week with college applications, will try to finish this weekend |
We reuse the `NPM` structure, and use NPMVariant to distinguish “npm” and “pnpm”. Besides, we also decouple the name display from `NPM` structure. BREAKING CHANGES: `pnpm` is now a separated step. This fixes topgrade-rs#68.
We reuse the `NPM` structure, and use NPMVariant to distinguish “npm” and “pnpm”. Besides, we also decouple the name display from `NPM` structure. BREAKING CHANGES: `pnpm` is now a separated step. This fixes topgrade-rs#68.
We reuse the `NPM` structure, and use NPMVariant to distinguish “npm” and “pnpm”. Besides, we also decouple the name display from `NPM` structure. BREAKING CHANGES: `pnpm` is now a separated step. This fixes topgrade-rs#68.
We reuse the `NPM` structure, and use NPMVariant to distinguish “npm” and “pnpm”. Besides, we also decouple the name display from `NPM` structure. BREAKING CHANGES: `pnpm` is now a separated step. This fixes topgrade-rs#68.
|
What did you expect to happen?
I have both
npm
andpnpm
installed, I usenpm
for global installs andpnpm
for projects.I upgraded topgrade and since this commit 27349b1 it's now using
pnpm
for global upgrades.pnpm
should not be considered an alternative tonpm
as most users will have both installed (I don't think you can actually havepnpm
and not havenpm
)Additionally,
topgrade
created a~
directory in my HOME directory with emptyLibrary/pnpm
directoriesAdditional Details
Topgrade 10.0.0
This should remain as
npm update -g
The text was updated successfully, but these errors were encountered: