Using YARN
Solved
LAMP
-
Was just investigating this a bit. What I found is that yarn wants to write as root user into
/usr/local/share/.yarnrc
. This is reported upstream as bug https://github.com/yarnpkg/yarn/issues/4628Workaround (you can put this in /app/data/.bashrc if you like):
export YARN_DISABLE_SELF_UPDATE_CHECK="true"
After this, I am able to install easily:
root@38e05e7c-8aee-426e-85ef-a577d080c39c:/app/data/public# yarn add safetydance yarn add v1.22.17 warning package.json: No license field warning Skipping preferred cache folder "/usr/local/share/.cache/yarn" because it is not writable. warning Selected the next writable cache folder in the list, will be "/tmp/.yarn-cache-0". warning No license field [1/4] Resolving packages... [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... success Saved lockfile. warning No license field success Saved 1 new dependency. info Direct dependencies └─ safetydance@2.2.0 info All dependencies └─ safetydance@2.2.0 Done in 1.15s. root@38e05e7c-8aee-426e-85ef-a577d080c39c:/app/data/public#
-