Young87

SmartCat's Blog

So happy to code my life!

游戏开发交流QQ群号60398951

当前位置:首页 >跨站数据

Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x

重复装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即可


参考:https://stackoverflow.com/questions/37986800/node-sass-could-not-find-a-binding-for-your-current-environment



除特别声明,本站所有文章均为原创,如需转载请以超级链接形式注明出处:SmartCat's Blog

上一篇: mybatis plus第五讲 spring-mybatis.xml文件

下一篇: 数据库中schema

精华推荐