I have a working project based on kotlin-frontend-plugin.
As a next step I wanted to add kotlinx-html-js to the project.
I defined the Gradle dependency:
dependencies {
...
compile "org.jetbrains.kotlinx:kotlinx-html-js:0.6.11"
}
But the command line Gradle build fails:
Task :client:npm-install
npm ERR! code ETARGET
npm ERR! notarget No matching version found for kotlinx-html-js@0.6.11
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn’t exist.
npm ERR! notarget
npm ERR! notarget It was specified as a dependency of ‘client’
npm ERR! notarget
What should I change?
Besides, why does the npm-install task try to download kotlinx-html-js@0.6.11 even if it is not defined in the kotlinFrontend.npm {}
block as an npm dependency?
17 http fetch GET 304 https://registry.npmjs.org/kotlinx-html-js 1109ms (from cache)
18 silly registry:manifest no matching version for kotlinx-html-js@0.6.11 in the cache. Forcing revalidation
19 http fetch GET 304 https://registry.npmjs.org/kotlinx-html-js 26ms (from cache)
20 silly fetchPackageMetaData error for kotlinx-html-js@0.6.11 No matching version found for kotlinx-html-js@0.6.11
21 silly registry:manifest no matching version for kotlinx-html-js@0.6.11 in the cache. Forcing revalidation
22 http fetch GET 304 https://registry.npmjs.org/kotlinx-html-js 33ms (from cache)
23 silly fetchPackageMetaData error for kotlinx-html-js@0.6.11 No matching version found for kotlinx-html-js@0.6.11