This happens during `:kotlinNpmInstall`. Maybe because of `yarn` version. Fixed by adding `kotlin.js.yarn=false` to `gradle.properties`.