1.第一次提示
This usually happens because your environment has changed since running npm install
百度说是node-sass安装后环境发生变化。需要重新编译或安装node-sass
解决
1.在项目根路径打开管理员模式的cmd控制台
2
npm rebuild node-sass
Cannot download “https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-72_binding.node”
2.1 提示:
3.设置淘宝下载
npm i node-sass --sass_binary_site=https://npm.taobao.org/mirrors/node-sass/
ok,启动node服务成功
以上就是node.js启动服务失败的详细内容,更多请关注php知识-学习天地 www.lxywzjs.com其它相关文章!