Skip to main content

yarn fails on permission error


ERROR:

$ yarn

yarn install v0.23.4
[1/4] Resolving packages...
warning Integrity check: Patterns don't match
[2/4] Fetching packages...
error An unexpected error occurred: "EACCES: permission denied, mkdir '/DATA/ads_slave/.yarn-cache/v1/npm-hard-source-webpack-plugin-0.3.12-ba9bf1ce645e83146b4324c068909275997223b5'".

The workaround:

Run 'yarn' using sudo:

$ sudo yarn
[sudo] password for dev: 
yarn install v0.23.4
[1/4] Resolving packages...
warning Integrity check: Patterns don't match
[2/4] Fetching packages...
warning fsevents@1.1.1: The platform "linux" is incompatible with this module.
info "fsevents@1.1.1" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
...

Comments

Popular posts from this blog

Best freeware - XML editor

As a software developer, I open XML files all the time. I a heavy commercial XML editor. But nothing can compare to a small, thin and free XML editor like 'foxe'. A great feature is has is the alignment of long XML strings to readable XML format (Shift-F8). It help lot of times when the XML file was generated by some tool and was not readable. Homepage: http://www.firstobject.com/dn_editor.htm

SSL in pictures

Here is my summary on SSL (or as I like to call it 'SSL for dummies')

Jenkins error: groovy.lang.MissingPropertyException

I tried to run groovy build step and got below error. This post will describe how I solved the problem. Caught: groovy.lang.MissingPropertyException: No such property: hudson for class: script