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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Let's say we take the following assumptions:
nodeandnpmversion installed with some older version.nodeplugin to install a newer version ofnodeandnpm..gradle/nodejs/nodejs-some_versionand.gradle/npm/npm-some_version.Is there a trick or recipe to use this versions if running
nodeornpmon 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
PATHvariable 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