pm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! phantomjs-prebuilt@2.1.15 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the phantomjs-prebuilt@2.1.15 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
(要以管理员身份运行cmd 以管理员身份打开Visual)
1、node、npm版本不对
检查node npm 版本 package.json文件中 "engines": { "node": ">= 8.11.1", "npm": ">= 5.6.0" },
node-sass 版本一般和node对应 所以不要轻易改动
chromedriver报错
2、浏览器驱动不对
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
npm install
npm run dev
重新安装浏览器驱动
3、再次执行 npm install之前
要把 node_modules文件夹删除