Florent Martin
01/31/2025, 8:14 AMFlorent Martin
01/31/2025, 9:01 AMFlorent Martin
02/03/2025, 5:28 PMrootProject.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?Edoardo Luppi
02/10/2025, 10:32 AMthe npm version used in kotlin/JS?Note that the default is still Yarn Classic. Using npm requires
kotlin.js.yarn = false
in gradle.properties
The npm version will be the one bundled with Node.js IIRC.