Medium / phantomjs

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

phantomjs.path is WRONG #788

Open shuangwhywhy opened 6 years ago

shuangwhywhy commented 6 years ago

The phantomjs.path is incorrect. It concats "node_modules/_phantomjs-prebuilt@2.1.16@phantomjs-prebuilt/lib/phantom/bin/phantomjs" to the parent folder of my working dir, so never would it find the bin.

shuangwhywhy commented 6 years ago

After some debugging, I found it conflicts with webpack config "context"

jfoclpf commented 5 years ago

in my case phantomjs.path is also wrong but pointing to /usr/bin/phantomjs

jfoclpf commented 5 years ago

Solved with npm rebuild phantomjs-prebuilt

When the path is wrong you have to npm rebuild