node
启动项目报错
一、sass
引起的错误
1、启动
npm run dev
错误信息
Node Sass does not yet support your current environm ent: Windows 64-bit with Unsupported runtime
2、解决方案
必须将`node的版本升级或降级为10.22.0,具体原因不明,请见谅。
# 卸载node-sass
npm uninstall --save node-sass
# 清楚缓存
npm cache clean -f
# 升级node-sass模块
npm install --save node-sass
3、真实案例
renren-fast-vue
项目启动报错
配置镜像源
npm config set registry http://registry.npm.taobao.org
先把项目下的文件夹node_modules全部删除
npm install chromedriver --chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
npm install
npm run dev