When we try to install trough yarn to custom folder
yarn install --modules-folder /tmp/yarn/
We get this error
yarn install v0.21.3
[1/4] Resolving packages...
[2/4] Fetching packages...
warning fsevents@1.0.17: The platform "linux" is incompatible with this module.
info "fsevents@1.0.17" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
[1/1] ⠂ phantomjs-prebuilt
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
[-/1] ⠂ waiting...
error /tmp/yarn/phantomjs-prebuilt: Command failed.
Exit code: 1
Command: sh
Arguments: -c node install.js
Directory: /tmp/yarn/phantomjs-prebuilt
Output:
module.js:327
throw err;
^
Error: Cannot find module 'request-progress'
at Function.Module._resolveFilename (module.js:325:15)
at Function.Module._load (module.js:276:25)
at Module.require (module.js:353:17)
at require (internal/module.js:12:17)
at Object.<anonymous> (/tmp/yarn/phantomjs-prebuilt/install.js:9:23)
at Module._compile (module.js:409:26)
at Object.Module._extensions..js (module.js:416:10)
at Module.load (module.js:343:32)
at Function.Module._load (module.js:300:12)
at Function.Module.runMain (module.js:441:10)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
When we try to install trough yarn to custom folder
yarn install --modules-folder /tmp/yarn/
We get this error
yarn: 0.21.3 node: v4.7.2 os: Debian Stretch