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

[FR] Better error message when using pnpm i -g #6224

Closed
wenfangdu opened this issue Mar 16, 2023 · 0 comments · Fixed by #6365
Closed

[FR] Better error message when using pnpm i -g #6224

wenfangdu opened this issue Mar 16, 2023 · 0 comments · Fixed by #6365

Comments

@wenfangdu
Copy link

wenfangdu commented Mar 16, 2023

After I changed my global npm registry, running pnpm i -g pkg throws

This modules directory was created using the following registries configuration: {"default":"https://registry.npmjs.org/"}. The current configuration is {"default":"http://registry.npm.foo.com/"}. To recreate the modules directory using the new settings, run "pnpm install".

I tried pnpm install multiple times with no success because, in fact, it should be pnpm i -g, I suggest adding the -g in the error message if the user was using pnpm i -g pkg, and don't add it if not.

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

Successfully merging a pull request may close this issue.

1 participant