输入npm install
报以下错误
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.14.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xiangyu.han\AppData\Roaming\npm-cache\_logs\2020-07-14T03_23_38_392Z-debug.log
百度了很久问题,有说使用npm cache clean --force然后再npm install的,然后会出现另外一个错,Module build failed: Error: Cannot find module ‘node-sass’
然后再npm install node-sass,最终的结果还是错误
最后这篇文章是解决办法
https://www.cnblogs.com/pxblog/p/12444050.html
这个是因为sass安装时获取源的问题,修改sass安装的源,使用taobao的npm
npm config set sass_binary_site=https://npm.taobao.org/mirrors/node-sass
然后运行
npm install