Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x
日期: 2018-05-31 分类: 跨站数据 270次阅读
重复装node,启动导致如下报错:
Found bindings for the following environments:
- OS X 64-bit with Node.js 9.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
at module.exports (/usr/local/lib/node_modules/@mtfe/fe-consolidate/node_modules/node-sass/lib/binding.js:15:13)
at Object.<anonymous> (/usr/local/lib/node_modules/@mtfe/fe-consolidate/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/@mtfe/fe-consolidate/node_modules/sass-loader/lib/loader.js:3:14)
@ ./www/src/pages/models/modal.scss 4:14-368
@ ./www/src/pages/models/common-modal.js
@ ./www/src/pages/reports/index.js
@ multi ./www/src/pages/reports/index.js
解决方案:
1.进入/usr/local/lib/,运行 npm rebuild node-sass
如果还不行
2.I went to /usr/local/lib/
using CMD+SHIFT+G in finder and renamed node-sass folder. Then ran npm install node-sass -g
. that fixed. I'm on Mac OS ,重复1即可
除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog
标签:node
精华推荐