villeristi / vue.js-starter-template

A starter template for Vue.js projects
https://vue-starter.ville.io/
MIT License
264 stars 67 forks source link

Clean install `yarn` fails on PhantomJS #5

Closed ivuorinen closed 7 years ago

ivuorinen commented 7 years ago

For some reason yarn fails to install PhantomJS, but npm install works correctly. Error from output: PhantomJS not found on PATH.

Adding this here for others that might run into this.

Here's the full console output
vagrant@homestead:~/dev/vue.js-starter-template$ yarn
yarn install v0.18.1
[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/2] ⠠ node-sass: Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/linux-x64-48_binding.node
[2/2] ⠠ phantomjs-prebuilt
[-/2] ⠠ waiting...
[-/2] ⠐ waiting...
error /home/vagrant/dev/vue.js-starter-template/node_modules/phantomjs-prebuilt: Command failed.
Exit code: 1
Command: sh
Arguments: -c node install.js
Directory: /home/vagrant/dev/vue.js-starter-template/node_modules/phantomjs-prebuilt
Output:
PhantomJS not found on PATH
Phantom installation failed TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at findSuitableTempDirectory (/home/vagrant/dev/vue.js-starter-template/node_modules/phantomjs-prebuilt/install.js:127:30)
    at /home/vagrant/dev/vue.js-starter-template/node_modules/phantomjs-prebuilt/install.js:476:19
    at nextTickCallback (/home/vagrant/dev/vue.js-starter-template/node_modules/kew/kew.js:47:28)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9) TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1211:7)
    at findSuitableTempDirectory (/home/vagrant/dev/vue.js-starter-template/node_modules/phantomjs-prebuilt/install.js:127:30)
    at /home/vagrant/dev/vue.js-starter-template/node_modules/phantomjs-prebuilt/install.js:476:19
    at nextTickCallback (/home/vagrant/dev/vue.js-starter-template/node_modules/kew/kew.js:47:28)
    at _combinedTickCallback (internal/process/next_tick.js:67:7)
    at process._tickCallback (internal/process/next_tick.js:98:9)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

villeristi commented 7 years ago

This seems to be an issue with yarn: https://github.com/yarnpkg/yarn/issues/1016