Skip to main content

Posts

Showing posts with the label yarn

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... ...

gnutls_handshake() failed: Access was denied

Error when running apt-get: sudo apt-get update && sudo apt-get install yarn gnutls_handshake() failed: Access was denied The problem: There is proxy configuration error of apt-get The fix: Define proxy for apt-get 1.  sudo vim /etc/apt/apt.conf 2. Add line:   Acquire::http::proxy " http://web-proxy.il.hpecorp.net:8080 "; Source:  https://ubuntuforums.org/showthread.php?t=2011511