使用Node.js的Laravel:“Node Sass找不到当前环境的绑定”

时间:2017-08-07 13:55:02

标签: node.js laravel runtime-error node-sass

所以我之前没有安装过Node,只是标准的Laravel。今天我安装了Node.js 8,现在我的一个旧项目在控制台中告诉我以下内容:

app.js:66591 Uncaught Error: Module build failed: ModuleBuildError: Module build failed: Error: Missing binding /node_modules/node-sass/vendor/darwin-x64-57/binding.node
Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 8.x

Found bindings for the following environments:
  - OS X 64-bit with Node.js 6.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.

不幸的是,'npm rebuild node-sass --force'不会改变任何东西。我尝试安装节点6或8,但我无法摆脱错误(网站仍在工作,Laravel是否仅使用Node for npm?)。

那么解决方案是什么?

0 个答案:

没有答案