出现这个问题你要先把node-sass移除后重新安装
执行下面命令
npm remove node-sass --save-dev
然后安装
npm install node-sass@latest --save-dev
2.npm install错误chromedriver@2.33.2 install: `node install.js`
找了很久解决办法,有人输入:
npm install chromedriver -g
解决了这个问题,可是对我并没有用,只能继续找,然后找到了这个:
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
3.出现node-sass转移问题
Error: ENOENT: no such file or directory, scandir 'F:\express-vue-mvc-starter\node_modules\node-sass\vendor' at Object.fs.readdirSync (fs.js:911:18) at Object.getInstalledBinaries (F:\express-vue-mvc-starter\node_modules\node-sass\lib\extensions.js:124:13) at foundBinariesList (F:\express-vue-mvc-starter\node_modules\node-sass\lib\errors.js:20:15) at foundBinaries (F:\express-vue-mvc-starter\node_modules\node-sass\lib\errors.js:15:5) at Object.module.exports.missingBinary (F:\express-vue-mvc-starter\node_modules\node-sass\lib\errors.js:45:5) at module.exports (F:\express-vue-mvc-starter\node_modules\node-sass\lib\binding.js:15:30) at Object.<anonymous> (F:\express-vue-mvc-starter\node_modules\node-sass\lib\index.js:14:35) at Module._compile (module.js:624:30) at Module._extensions..js (module.js:635:10) at Object.require.extensions.(anonymous function) [as .js] (F:\express-vue-mvc-starter\node_modules\babel-register\lib\node.js:152:7)
解决:
npm rebuild node-sass