Hello! I'm using kotlin multiplatform and I'm havi...
# multiplatform
j
Hello! I'm using kotlin multiplatform and I'm having this error when trying to run the web version, any ideas how I can resolve this issue? Thanks
Could not determine the dependencies of task ':kotlinNodeJsSetup'.
Could not resolve all files for configuration ':detachedConfiguration1'.
> Could not find org.nodejs:node:14.17.0.
Searched in the following locations:
- <https://dl.google.com/dl/android/maven2/org/nodejs/node/14.17.0/node-14.17.0.pom>
- <https://repo.maven.apache.org/maven2/org/nodejs/node/14.17.0/node-14.17.0.pom>
- <https://maven.pkg.jetbrains.space/public/p/compose/dev/org/nodejs/node/14.17.0/node-14.17.0.pom>
- <https://nodejs.org/dist/v14.17.0/node-v14.17.0-darwin-arm64.tar.gz>
Required by:
project :
Possible solution:
- Declare repository providing the artifact, see the documentation at <https://docs.gradle.org/current/userguide/declaring_repositories.html>
i
What version of Kotlin are you targeting? I believe that was necessary before 1.6 but in 1.8 I dont think that is a dep anymore.
In the KMP project I have open right now we're using Kotlin 1.7 and that brought in Node 18.11.16.
a
do you set
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
in
settings.gradle.kts
? https://youtrack.jetbrains.com/issue/KT-51379
a
You need to adjust node versions to a one that supports macOS on ARM CPUs
384 Views