:kotlin_emoji: 2.0.20-RC2 has been released! :arro...
# eap
a
K 2.0.20-RC2 has been released! ➡️ What’s new
🎉 6
s
Tests for js target are failing with the following error
Copy code
> Task :kotlinNpmInstall
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm WARN deprecated glob@8.1.0: Glob versions prior to v9 are no longer supported
npm notice
npm notice New minor version of npm available! 10.5.1 -> 10.8.2
npm notice Changelog: <<https://github.com/npm/cli/releases/tag/v10.8.2>>
npm notice Run `npm install -g npm@10.8.2` to update!
npm notice

> Task :kotlinStorePackageLock
Lock file was changed. Run the `kotlinUpgradePackageLock` task to actualize lock file

> Task :shared:jsBrowserTest

Server start failed on port 9876: Error: Cannot find module 'mocha'
Require stack:
- /code/kotlin-mpp-playground/build/js/node_modules/karma-mocha/lib/index.js
- /code/kotlin-mpp-playground/build/js/node_modules/karma/lib/plugin.js
- /code/kotlin-mpp-playground/build/js/node_modules/karma/lib/server.js
- /code/kotlin-mpp-playground/build/js/node_modules/karma/lib/cli.js
- /code/kotlin-mpp-playground/build/js/node_modules/karma/bin/karma
java.lang.IllegalStateException: command '/.gradle/nodejs/node-v22.0.0-darwin-arm64/bin/node' exited with errors (exit code: 1)

> Task :shared:wasmJsBrowserTest
Things were working fine until the last RC ..Any idea whats happening here?
m
Hi, did you try to run kotlinUpgradePackageLock to actualize your lock file?
s
@Margarita Bobova yeah still same error
m
cc @Ilya Goncharov [JB] could you please have a look?
i
I's recommend try to remove
kotlin-js-store/package-lock.json
as well, possibly npm faced with a problem trying to upgrade it incrementally. So try to remove
kotlin-js-store
, and root
build/js
directory
thank you color 2
s
@Ilya Goncharov [JB] thanks, that did the trick.