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

yarn installation failed with phantomjs path #43

Closed
vogloblinsky opened this issue Dec 10, 2016 · 4 comments
Closed

yarn installation failed with phantomjs path #43

vogloblinsky opened this issue Dec 10, 2016 · 4 comments

Comments

@vogloblinsky
Copy link
Contributor

node : 6.5.0
npm : 3.10.9
yarn : 0.17.10

yarn add angular2-dependencies-graph


error /home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/node_modules/phantomjs: Command failed.
Exit code: 1
Command: sh
Arguments: -c node install.js
Directory: /home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/node_modules/phantomjs
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:1213:7)
    at findSuitableTempDirectory (/home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/node_modules/phantomjs/install.js:127:30)
    at /home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/node_modules/phantomjs/install.js:476:19
    at nextTickCallback (/home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/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:1213:7)
    at findSuitableTempDirectory (/home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/node_modules/phantomjs/install.js:127:30)
    at /home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/node_modules/phantomjs/install.js:476:19
    at nextTickCallback (/home/osboxes/Documents/www/compodoc-demo-todomvc-angular2/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/add for documentation about this command.
@manekinekko
Copy link
Member

manekinekko commented Dec 10, 2016 via email

@vogloblinsky
Copy link
Contributor Author

Yep, that was my personal conclusion 😄

@manekinekko
Copy link
Member

@nweldev
Copy link

nweldev commented Oct 20, 2017

Ngb releases are a bit confusing. It took me some time to figure out that v1.0.0-alpha.12 comes after v1.0.0. So we can't set this dependency to ^1.0.0-alpha.12 like I did. It would be a good idea to release v1.0.0-alpha.12 as a v1.0.1 to solve this (related to #33)

For now, in order to fix this issue, we have to set the version to a strict 1.0.0-alpha.12, or we can simply add :

"resolutions": {
    "angular2-dependencies-graph/svg-to-png": "3.1.0"
  }

to our package.json if we use yarn (see https://yarnpkg.com/lang/en/docs/selective-version-resolutions/), since there isn't any beacking change between this two versions, at least for how ngb seems to use it.

Related issues :

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

3 participants