How to use node plugin version of nodejs and npm? #327
Unanswered
FSeidinger-XI
asked this question in
Q&A
Replies: 1 comment
-
There's a script in one of the issues for doing this, and there's an issue that's requesting support for NVM You could have a task that writes a .nvmrc with the version specified in Gradle and use nvm's shell integration for that |
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
-
Let's say we take the following assumptions:
node
andnpm
version installed with some older version.node
plugin to install a newer version ofnode
andnpm
..gradle/nodejs/nodejs-some_version
and.gradle/npm/npm-some_version
.Is there a trick or recipe to use this versions if running
node
ornpm
on the command line?Background is that when running, testing or building on the command line I want to be sure to use the same version that gradle sees.
I could alter my
PATH
variable but then it includes the version and will not change, if I upgrade the versions in gradle.Beta Was this translation helpful? Give feedback.
All reactions