Anyone had this issue? ```Caused by: org.gradle.in...
# gradle
t
Anyone had this issue?
Copy code
Caused by: org.gradle.internal.resolve.ModuleVersionNotFoundException: Could not find org.nodejs:node:14.15.4.
Searched in the following locations:
  - <https://repo.maven.apache.org/maven2/org/nodejs/node/14.15.4/node-14.15.4.pom>
  - <https://tomaszrocks.jfrog.io/artifactory/carrat-dev/org/nodejs/node/14.15.4/node-14.15.4.pom>
  - <https://tomaszrocks.jfrog.io/artifactory/jcenter-gone/org/nodejs/node/14.15.4/node-14.15.4.pom>
  - file:/C:/Users/Niema/.m2/repository/org/nodejs/node/14.15.4/node-14.15.4.pom
Required by:
    project :
Shouldn't it get it from https://nodejs.org/dist/? Slack Conversation
t
are using
implementation(npm(...))
notation? From here
t
@tapchicoma Yes
It's actually mpp project, but it probably doesn't matter
v
Can you share your build script?
t
The problem started occurring after I cleaned $HOME/.gradle folder.
It's multimodule project, so there's bunch of build scripts.
Let me see if I can reduce it to single file that reproduces problem.
v
The error says
Copy code
Required by:
    project :
so it should be something in the root project build script or one of the plugins you apply there. Do you maybe run in offline mode? For example this button in IntelliJ:
But yes, an MCVE would be best
t
Not running in offline mode. Error does not occur when all submodules are excluded(commented out).
i
t
Copy code
repositories {
    mavenCentral()
}

plugins {
    kotlin("multiplatform") version "1.5.21"
}

kotlin {
    jvm()
    js(LEGACY).browser()
    js(LEGACY).useCommonJs()

    sourceSets {
        js(LEGACY).compilations["main"].defaultSourceSet {
            dependencies {
                implementation(npm("react", "17.0.2"))
            }
        }
    }
}
gradle 7.1.1
Hmm... the issue occurs only if I try to sync project without building it first and nodejs is not yet downloaded.
So you have a little glitch JB ; )
i
t
Ah, ok. For some reason I was unable to google it.
Thanks for looking into my issue! : )
v
Ah, the price for using a milestone version. 😄