https://kotlinlang.org logo
#javascript
Title
# javascript
a

alec

08/05/2022, 3:24 PM
I'm upgrading gradle to 5.7 and getting
Copy code
> Task :sqldelight:kotlinNpmInstall
error <https://registry.yarnpkg.com/typescript/-/typescript-3.9.5.tgz>: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, stat '/Users/runner/Library/Caches/Yarn/v6/npm-typescript-3.9.5-586f0dba300cde8be52dd1ac4f7e1009c1b13f36-integrity/node_modules/typescript/lib/typingsInstaller.js'"

> Task :sqldelight:kotlinNpmInstall FAILED
...
> Task :web:kotlinSourcesJar

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':sqldelight:kotlinNpmInstall'.
>                 Process 'Resolving NPM dependencies using yarn' returns 1
                  
                  yarn install v1.22.17
and running out of ideas for what could be going on. It might be a corrupt cache of some sort but this is happening on CI and I'm not sure how to force a clear of the cache
h

hfhbd

08/05/2022, 3:34 PM
Does it only fail on CI? I tried it locally too and it works on my machine
a

alec

08/05/2022, 3:39 PM
only on CI
t

turansky

08/05/2022, 3:51 PM
Does it work with latest yarn (
1.22.19
), latest node?
h

hfhbd

08/05/2022, 3:59 PM
or just upload the log file 😄
a

alec

08/05/2022, 4:00 PM
how do I manually set the yarn/node versions
wdym upload the log file
h

hfhbd

08/05/2022, 4:02 PM
rootProject.plugins.withType(org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin::class.java) { rootProject.the<org.jetbrains.kotlin.gradle.targets.js.yarn.YarnRootExtension>().version = "1.22.19" }
t

turansky

08/05/2022, 4:03 PM
h

hfhbd

08/05/2022, 4:03 PM
Copy code
- name: Upload
        uses: actions/upload-artifact@v3
        with:
          path: build/js/yarn-error.log
a

alec

08/05/2022, 4:04 PM
thanks, will try those
5 Views