0

我有一个使用 Create React App (CRA) 和 ReactStrap Library 提供的模板引导的项目。问题出在我的 Windows 系统中,使用完全相同的节点版本npm run start运行良好,但在我的 Macbook pro 上失败并出现错误:请参阅以下错误详细信息:

Failed to compile.

./src/styles/reduction.scss (./node_modules/css-loader??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/sass-loader/lib/loader.js??ref--6-oneOf-5-3!./src/styles/reduction.scss) Error: Missing binding /Users/ganesh/Desktop/Juego Projects/2.4 Dream Ludo/0.0 Sourcecode/manojshetty-server-dreamludo/dream-ludo-cms/node_modules/node-sass/vendor/darwin-x64-72/binding.node Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 12.x Found bindings for the following environments: - OS X 64-bit with Node.js 10.x This usually happens because your environment has changed since running npm install. Run npm rebuild node-sass to download the binding for your current environment.

以下是我尝试过的事情。我让它工作的方式是卸载节点并安装旧版本。但我不能一直这样做。

有什么解决办法吗?我打算今晚进一步检查,但现在必须使用多个代码库并不能真正帮助一次安装 1 个节点版本。这也很耗时。

4

0 回答 0