-
Notifications
You must be signed in to change notification settings - Fork 509
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
[question] how to update npm for local project #953
Comments
Use $ corepack enable And in your {
...
"packageManager": "[email protected]",
...
} Corepack will automatically install and use the version you specify. Not sure if Corepack is available for Node 14 though. |
@sambauers |
Ok. I'm wondering if we need to add |
Right, I wasn't aware until now that corepack doesn't support npm. Maybe setting the npm version in "engines" inside package.json will help here, and then non-corepack logic will take care of it. |
@sambauers it supports |
It doesn't officially support it. I can't see a way to hook in to fnm to be able to run that command. It needs to be a feature request for the author I think. |
@Schniz WDYT about this? |
Hey,
Switching from Volta, looking for a way to pin npm version for the project.
fnm install 14 node --version > .node-version node -v v14.21.3 npm -v 6.14.18
Can the latest npm pin to the project somehow?
Running
npm install -g npm@8
from the project dir doesn't work.The text was updated successfully, but these errors were encountered: