Medium / phantomjs

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

path always null #642

Open rkusuma opened 7 years ago

rkusuma commented 7 years ago

i can't find location.js inside folder phantomjs-prebuilt. it makes the path always null. any solution?

try {
  var location = require('./location')
  exports.path = path.resolve(__dirname, location.location)
  exports.platform = location.platform
  exports.arch = location.arch
} catch(e) {
  // Must be running inside install script.
  exports.path = null
}
node: 6.5.0
npm: 3.10.3
os: Windows 8.1
Kamilius commented 7 years ago

👍 always throwing "PhantomJS not found on PATH" while trying to re-install phantomjs via npm

wedog commented 6 years ago

I don't know where is the location module ,so path is empty!

wedog commented 6 years ago

I solved it, i run 'npm run install' in 'phantomjs-prebuilt' module.

wedog commented 6 years ago

Is there a better way?