npm install 遇到问题
npm ERR
! code ELIFECYCLE
npm ERR
! errno 1
npm ERR
! chromedriver@2.46.0 install:
`node install.js`
npm ERR
! Exit status 1
npm ERR
!
npm ERR
! Failed at the chromedriver@2.46.0
install script.
npm ERR
! This is probably not a problem with npm. There is likely additional logging output above.
该问题的原因是chromedriver的部分文件被国内网络给墙掉了,无法下载完整的chromedirver包
解决方法:
npm install chromedriver --chromedriver_cdnurl
=http://cdn.npm.taobao.org/dist/chromedriver
npm run dev 遇到问题
Module build failed: Error: ENOENT: no such
file or directory, scandir
'D:\vue-admin\node_modules\node-sass\vendor'
解决方法:
npm rebuild node-sass