项目中nodejs启动服务失败
1.第一次提示
This usually happens because your environment has changed since running npm install
百度说是node-sass安装后环境发生变化。需要重新编译或安装node-sass
解决
- 1.在项目根路径打开管理员模式的cmd控制台
- 2
npm rebuild node-sass
- 2.1 提示:
- 3.设置淘宝下载
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
- ok,启动node服务成功