[Pkg-javascript-devel] Bug#974069: Bug#974069: error Yarn hasn't been able to find a cache folder it can use although folders are writable

Pirate Praveen praveen at onenetbeyond.org
Mon Nov 9 16:30:53 GMT 2020



On 2020, നവംബർ 9 9:13:58 PM IST, Daniel Leidert <dleidert at debian.org> wrote:
>Package: yarnpkg
>Version: 1.22.4-3
>Severity: important
>
>-----BEGIN PGP SIGNED MESSAGE-----
>Hash: SHA512
>
>I'm running `rails new ...`. At the end I get this:
>
>[..]
>Installing all JavaScript dependencies [4.2.2]
>         run  yarnpkg add @rails/webpacker at 4.2.2 from "."
>yarn add v1.22.4
>warning Skipping preferred cache folder "/home/daniel/.cache/yarn" because it is not writable.
>warning Skipping preferred cache folder "/tmp/.yarn-cache-1000" because it is not writable.
>warning Skipping preferred cache folder "/tmp/.yarn-cache" because it is not writable.
>error Yarn hasn't been able to find a cache folder it can use. Please use the explicit --cache-folder option to tell it what location to use, or make one of the preferred locations writable.
>info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
>Installing dev server for live reloading
>         run  yarnpkg add --dev webpack-dev-server from "."
>yarn add v1.22.4
>warning Skipping preferred cache folder "/home/daniel/.cache/yarn" because it is not writable.
>warning Skipping preferred cache folder "/tmp/.yarn-cache-1000" because it is not writable.
>warning Skipping preferred cache folder "/tmp/.yarn-cache" because it is not writable.
>error Yarn hasn't been able to find a cache folder it can use. Please use the explicit --cache-folder option to tell it what location to use, or make one of the preferred locations writable.
>info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
>
>The folders are writable. I even tried to make /home/daniel/.cache/yarn
>world-writeable. This seems odd.
>

This is caused by node-mkdirp transition, but node-yarnpkg is ftbfs currently (caused by node-babel/node-babel7 transition) which makes it hard to fix.
-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



More information about the Pkg-javascript-devel mailing list