Guilherme Delgado
04/26/2024, 3:44 PMrootProject.extensions.findByType<NodeJsRootExtension>()?.apply {
version = "v22.0.0-v8-canary20240219209428711c"
downloadBaseUrl = "<https://nodejs.org/download/v8-canary>"
}
can be removed. I’ve Node.js 22 installed:
➜ ~ node -v
v22.0.0
➜ ~ npm -v
10.5.1
But if I run my wasm target, inside user/.gradle/nodejs
folder, I’ll find node-v20.10.0-darwin-arm64 instead of node-v22.0.0-darwin-arm64 which only gets installed if I specify it:
rootProject.extensions.findByType<org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootExtension>()?.apply {
version = "22.0.0"
}
So, which default setting (wasmJsBrowserDevelopmentRun
?) is responsible for using Node.js v20 instead of system version? @bashor any idea?Artem Kobzar
04/29/2024, 9:51 AMrootProject.extensions.findByType<NodeJsRootExtension>()?.apply {
version = ...
}
By default we are using Node.js 20, but it's only for right now, we are working on the migration to v22Guilherme Delgado
05/01/2024, 2:22 PMbashor
05/01/2024, 6:13 PM