Hi everyone, where can I find the internal node ve...
# javascript
f
Hi everyone, where can I find the internal node version for latest Kotlin JS?
f
Great thank you!
Copy code
rootProject.kotlinNodeJsRootExtension.version
is the easiest way to get node version in gradle. @ephemient • It’ll be deprecated in v2.2, is there currently another way to get node-version (via
NodeJsEnvSpec
)?
"Use downloadBaseUrl from NodeJsEnvSpec (not NodeJsRootExtension) instead. "
• Do you also know how I can get the npm version used in kotlin/JS?
e
the npm version used in kotlin/JS?
Note that the default is still Yarn Classic. Using npm requires
Copy code
kotlin.js.yarn = false
in
gradle.properties
The npm version will be the one bundled with Node.js IIRC.