Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean install yarn fails on PhantomJS #5

Closed
ivuorinen opened this issue Jan 23, 2017 · 1 comment
Closed

Clean install yarn fails on PhantomJS #5

ivuorinen opened this issue Jan 23, 2017 · 1 comment

Comments

@ivuorinen
Copy link

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 [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" 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
Copy link
Owner

This seems to be an issue with yarn: yarnpkg/yarn#1016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants