Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x

2018/12/28 11:32
阅读数 771

报错信息如下:

[error] ./client/components/TimeLine/TimeLine.scss
Module build failed: Error: Missing binding /usr/local/yapi/vendors/node_modules/node-sass/vendor/linux-x64-51/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 7.x

Found bindings for the following environments:
  - Windows 64-bit with Unsupported runtime (67)

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/yapi/vendors/node_modules/node-sass/lib/binding.js:15:13)
    at Object.<anonymous> (/usr/local/yapi/vendors/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)
    at Function.Module._load (module.js:439:3)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at Object.sassLoader (/usr/local/yapi/vendors/node_modules/sass-loader/lib/loader.js:24:22)
 @ ./client/components/TimeLine/TimeLine.js 101:0-26

 解决办法:

重新构建本地node-sass

npm rebuild node-sass

 

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部