npm install时报错:
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/hadoop/.npm/_logs/2019-03-24T05_37_10_542Z-debug.log
解决:
单独安装
npm install phantomjs-prebuilt@2.1.14 --ignore-scripts