Hi, I followed this guide: <https://www.jetbrains....
# compose-web
p
Hi, I followed this guide: https://www.jetbrains.com/help/kotlin-multiplatform-dev/compose-multiplatform-create-first-app.html I’m on Mac M1 When I run the wasm (./gradlew wasmJsBrowserRun -t --quiet), I get this error:
Copy code
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':kotlinNpmInstall'.
>                 Process 'Resolving NPM dependencies using yarn' returns 1
                  
                  Unknown Syntax Error: Unsupported option name ("--ignore-scripts").
I found this solution: https://youtrack.jetbrains.com/issue/KT-57723/Kotlin-JS-kotlinNpmInstall-fails-with-fresh-project-on-M1-Max But the author didn’t mention how to fix it in detail, could you please support?
I also wonder if we can use yarn 3 instead of yarn 1?
a
@Ilya Goncharov [JB] ^^
i
By default we do not provide Yarn 3, we did not adopt it yet. But we adopted NPM as package manager
p
Thanks @Artem Kobzar and @Ilya Goncharov [JB]
How could I fix this?
Or any workaround?
i
As I understand you use another version of Yarn? Or you have
.yarnrc
globally?
p
I guess so
I’ll try to install yarn 1 later
thanks for your help
i
You can use
.yarnrc
locally for your project and configure it appropriately. We install yarn 1 during your build in Kotlin Gradle plugin
p
I think JetBrains should update the docs and mention this 🙂