-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
[DOCS] npm init doesn't use @latest package version if already installed globally #3821
Comments
This has already been discussed here: #2395 cc @wraithgar wondering if there's an RFC or if this change is planned? This is quite annoying because it forces to add |
This would be a great thing to bring up at the RFC meeting. I know it would likely also benefit for instance the |
Hey @wraithgar , I'm not very familiar with this process, what is a "RRFC" compared to a regular RFC md doc? Are those more casual RFCs opened as issues? |
Note: some projects handle this problem by not including init templates inside the One example is https://github.com/remotion-dev/remotion/blob/main/packages/create-video/src/init.ts |
Exactly, it's basically the opening of a discussion to see if we even want an rfc or if the general consensus is to fix it as a bug. It's one of those formalities we like to adhere to so that decisions like this aren't made without giving the community a chance to give input. It also helps leave a record of the decision, which is very helpful. |
I'm not sure if anything has changed in node, but if you can open a new issue I can investigate. |
reported here: #4619 |
This behavior is extremely frustrating as a package maintainer. We've had to do the same, which you can see on the homepage of https://svelte.dev/ and many other places in our docs. I understand that this limitation has now been documented, but can we consider improving the behavior here? I'm also not sure what it means for a create package to be installed globally. I can't imagine that I ever ran |
Is there an existing issue for this?
Current Behavior
Run
npm init docusaurus -- -V
publish 0.0.6
Run again:
I have no idea why it says:
Need to install the following packages: create-docusaurus Ok to proceed? (y)
It even shows a download progress bar, and then the version stays at 0.0.5, despite 0.0.6 being published.
Expected Behavior
After 0.0.6 publish, it should use that newly published version instead of the already installed one.
This is also the behavior of
yarn create docusaurus -V
Steps To Reproduce
See above
Environment
Could also reproduce on npm 6 / Node 12
The text was updated successfully, but these errors were encountered: