-
-
Notifications
You must be signed in to change notification settings - Fork 934
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
[Feature Request] Support .nvmrc for pnpm env
#4471
Comments
If this feature request would pass, how about using the {
"engines": {
"node": "16.14.2"
}
} |
No, we cannot use the engines field because if you publish such package and you will install it with |
Missing support for |
Alternatively, a |
Why should pnpm read from You can specify the node version via use-node-version in Added an explanation about it to the docs: pnpm/pnpm.github.io@5bd1b5c |
It doesn't necessarily have to be If it's in a file of its own, it can either be |
Hello, you're missing also It's so stupid that there is no one way to do it. |
and |
I think it would be fine if pnpm could just support one file format. Every other file name can be supported via symlink. |
I wrote the message before try this node version management feature. I change my mind. It is not necessary to support other ways for determining node version, because it is invisible for developers. I just added node version in pnpm way in one project and I am sure that most of my colleagues will not realise about change, when they start working on this project. And CI it's just simpler, one image with pnpm to maintenance. |
If you're using GitHub Actions, here's a relevant CI limitation with pnpm setting up Node.js: pnpm/action-setup#70 |
Any decision on which file would be best to use for this - And would it work with |
For interest, node version managers and products supporting |
NVM is quite popular, so supporting
I'd think it would make most sense to have the behavior of reading from a node version file be for a no-arg use of |
That would be #7211, BTW. |
I don't get why |
Just learned about
pnpm env
from this Twitter threadDescribe the user story
If I have an
.nvmrc
file, I'd like to be able to runpnpm env
and have that Node version automatically install (if needed) and be switched to.The text was updated successfully, but these errors were encountered: