I'm upgrading gradle to 5.7 and getting ```> T...
# javascript
a
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
Does it only fail on CI? I tried it locally too and it works on my machine
a
only on CI
t
Does it work with latest yarn (
1.22.19
), latest node?
h
or just upload the log file 😄
a
how do I manually set the yarn/node versions
wdym upload the log file
h
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
h
Copy code
- name: Upload
        uses: actions/upload-artifact@v3
        with:
          path: build/js/yarn-error.log
a
thanks, will try those