今天拉取了vue项目在本地npm install的时候报错,记录如下步骤解决:
一、删除node_modules
二、npm install这步代码报错:
Failed at the chromedriver@2.46.0 install script 'node install.js'

原因一般是下载源被封了,我们连接淘宝的下载源下载:

npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver

继续npm install报错:

Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime

node sass 不支持当前的环境,解决方法:

1、卸载当前版本node sass

npm uninstall --save node-sass

2、重新安装node sass

npm install --save node-sass

继续npm install报错:

npm ERR! missing script: serve

改为npm run dev

运行成功!