Using YARN
-
Actually to take a step back, from your
package.jsonit looks like there is nothingyarnspecific, couldn't you just usenpmthere instead? -
@nebulon said in Using YARN:
Actually to take a step back, from your package.json it looks like there is nothing yarn specific, couldn't you just use npm there instead?
Well I could, however,
npmis often way slower thanyarnis. -
@FoksVHox actually I have mixed experience there since some npm releases. But either way would a few seconds make much difference in your case compared to it working?
-
@nebulon There is:
EACCES: permission denied, open '/app/data/lectero/public/build/assets/app.22fa980f.js' error during build: Error: EACCES: permission denied, open '/app/data/lectero/public/build/assets/app.22fa980f.js' -
@nebulon There is:
EACCES: permission denied, open '/app/data/lectero/public/build/assets/app.22fa980f.js' error during build: Error: EACCES: permission denied, open '/app/data/lectero/public/build/assets/app.22fa980f.js' -
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# -
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# -
G girish has marked this topic as solved on
-
Hello @charlesnw
With this commit: https://git.cloudron.io/platform/docker-base-image/-/commit/2e4f7fd5fde83652567dd0a00a695f523bef98d1 yarn was removed from the docker base image.
So yes, yarn is no longer included in any app by default.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better š
Register Login
