Medium / phantomjs

NPM wrapper for installing phantomjs
Other
1.42k stars 435 forks source link

.path fails when installed with yarn #671

Open balupton opened 7 years ago

balupton commented 7 years ago
$ yarn --version
0.19.1

$ yarn add --dev phantomjs-prebuilt

$ node
>  require('phantomjs-prebuilt').path
'/Users/balupton/bin/phantomjs'

$ ./node_modules/.bin/phantomjs
Error executing phantom at /Users/balupton/bin/phantomjs
Error: spawn /Users/balupton/bin/phantomjs ENOENT
    at exports._errnoException (util.js:1023:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
    at onErrorNT (internal/child_process.js:359:16)
    at _combinedTickCallback (internal/process/next_tick.js:74:11)
    at process._tickCallback (internal/process/next_tick.js:98:9)
    at Module.runMain (module.js:607:11)
    at run (bootstrap_node.js:418:7)
    at startup (bootstrap_node.js:139:9)
    at bootstrap_node.js:533:3

$ npm install --save-dev phantomjs-prebuilt

$ node
> require('phantomjs-prebuilt').path
'/Users/balupton/Projects/ember/ember-cli-pagination/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs'

$ ./node_modules/.bin/phantomjs
phantomjs> ^C