-
Is it possible to lock the nodejs version when using AddNpmApp() ? |
Beta Was this translation helpful? Give feedback.
Answered by
davidfowl
Apr 23, 2025
Replies: 2 comments 7 replies
-
AddNpmApp doesn’t pick the node version, you do it in your package.json https://docs.npmjs.com/cli/v11/configuring-npm/package-json#engines |
Beta Was this translation helpful? Give feedback.
7 replies
Answer selected by
davidfowl
-
In my case I'm using this snippet for anyone looking for a nvm-managed node installation nvm alias default $(cat .nvmrc)
sudo ln -sf "$(which node)" /usr/local/bin/node
sudo ln -sf "$(which npm)" /usr/local/bin/npm
sudo ln -sf "$(which npx)" /usr/local/bin/npx |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
AddNpmApp doesn’t pick the node version, you do it in your package.json
https://docs.npmjs.com/cli/v11/configuring-npm/package-json#engines