ied安装程序与phantomjs / phantomjs-prebuilt

安装并行子依赖的Ied安装程序与phantomjs / pahtnomjs-prebuilt有一个问题。

问题是用phantomjs(如果在pc /虚拟机中不存在,从github下载)自定义npm安装程序安装软件包,并将它的path设置在lib文件夹的location.js中,这也是由于安装程序而不存在的。

您可以在第18行的lib / phantomjs.js文件中查看它

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 }