You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
For some reason
yarn
fails to install PhantomJS, butnpm 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
The text was updated successfully, but these errors were encountered: