I don't know if this this is the place for this. I...
# multiplatform
o
I don't know if this this is the place for this. I am building a compose multiplatform app and every platform was working perfectly. Yesterday I wanted to test the wasmjs just like I always do and I am constantly having this error. Task :kotlinWasmNpmInstall FAILED Task :kotlinWasmToolingSetup FAILED I have deleted gradle, build, delete my project and cloned it again, upgrade kotlin and gradle, downgrade kotlin and gradle, I even created a new project I it keeps throwing that error. My ai and ai agent can't even figure out the error. Now Chatgpt is pointing me to WPS.
y
you have to dig deeper into the wasm/npm logs for this one. if you try npm on a regular typescript project, does it work? i found a common caveat with many work computers is IT introducing new allowlist rules that breaks existing npm package downloads over the air.
o
I am trying it
I created a typescript project and ran it. There was no error. It works well
c
You can run the Gradle command with
--stacktrace
and/or
--scan
with more info about the error.
o
Run with --info for a stacktrace. Task :kotlinWasmNpmInstall FAILED FAILURE: Build failed with an exception. What went wrong: Execution failed for task ':kotlinWasmNpmInstall'. Process 'Resolving NPM dependencies using yarn' returns -1073741571
c
That is not a stacktrace. 😅
o
I can't post all the stacktrace here
c
Well, then there is nothing for us to help you with.
a
In those cases I nornally let Claude Code run the task in debug mode and almost always it figured it out
i
You can try to clean
~./gradle/nodejs
folder. Probably something is wrong with nodejs executable. Which OS do you use?
o
I have tried that already. I am using Windows 11
i
Is it reproducing only on your machine? Or it is reproducible on other machines and probably on CI?
o
It works on my Ubuntu virtual machine but not on Windows
i
Okay, just to debug it further, you can run Gradle build with
--info
flag, it prints the exact command which Gradle runs and from which directory it runs. You can just do exactly this command from the directory. Probably it should fail as well
o
I have fix the issue, after so much headache, I decided to formated my PC an that seems to fix the problem
a
The old napalm method.
😅 1