Node Sass could not find a binding for your current environment

Node环境从8升级到10后,Node Sass could not find a binding for your current environment

标签(空格分隔): Node


Node环境从8升级到10后,运行程序抛出Node Sass could not find a binding for your current environment的错误。

按照网上的解决方案,运行npm rebuild node-sass,提示下载某个文件超时(Cannot download "https://github.com/sass/node-sass/releases/download/v4.9.3/win32-x64-64_binding.node")。

所以干脆直接删除node-sass包后再重新install

npm uninstall -s node-sass
npm install -s node-sass

老项目可能有些包的依赖版本发生变化,可以执行

`npm audit fix

来修复它们。

posted @ 2019-02-19 17:21  古宝只  阅读(11799)  评论(0编辑  收藏  举报