报错
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! chromedriver@2.27.2 install: `node install.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the chromedriver@2.27.2 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
这个是因为没有找到chromedriver@2.27.2这个包,解决方案是
npm install chromedriver@2.27.2 --ignore-scripts
在npm run dev 的时候也可能报错
如果报错中有这个错误,或者类似的.vue错误,一般是错误:找不到模块“node sass”。
error in ./src/views/demo/ueditor.vue
所以执行以下命令:
首先执行:npm install -g cnpm --registry=https://registry.npm.taobao.org
再执行:cnpm install node-sass --save
最后:npm run dev
然后终于能成功运行了