frank
07/07/2020, 12:59 PMnpm()
function in my Gradle but throw error:
Execution failed for task ':kotlinNpmInstall'.
> Cannot find kotlin@1.4.0-M2 in yarn.lock
In yarn exists 1.4.0-M2 version (attach img.)
dependencies {
implementation(npm("kotlin", "1.4.0-M2"))
}
Ivan Kubyshkin [JetBrains]
07/07/2020, 1:18 PMandylamax
07/07/2020, 1:38 PMdependencies{
implementation(kotlin("stdlib-js","1.4.0-M2"))
}
frank
07/07/2020, 2:56 PMkotlin("stdlib-js")
installs the same node package as npm()
?andylamax
07/07/2020, 2:58 PMfrank
07/08/2020, 4:08 AMFailed to reproduce with a dummy project. Can you attach a link to your project?@Ivan Kubyshkin [JetBrains], Sry for the delay in replying: If you want to try it I have this Scratch Project Gradle Build where I call
npm()
function.
With Andy answer I have solved it.andylamax
07/08/2020, 4:10 AM