• 命令行 npm install
  • 报错
    PhantomJS not found on PATH
    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!     C:\Users\888\AppData\Roaming\npm-cache\_logs\2018-07-23T09_08_55_828Z-debug.log
    

解决方法

  • 安装cnpm npm install -g cnpm --registry=https://registry.npm.taobao.org
  • cnpm install
  • 问题解决

参考链接