Run `npm rebuild node-sass` to download the binding for your current environment.

This usually happens because your environment has changed since running 解决方案

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

Found bindings for the following environments:
  - OS X 64-bit with Node.js 14.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.
    at module.exports (YOUR_PROJECT_PATH/node_modules/node-sass/lib/binding.js:15:13)
    at Object.<anonymous> (YOUR_PROJECT_PATH/node_modules/node-sass/lib/index.js:14:35)
    at Module._compile (YOUR_PROJECT_PATH/node_modules/v8-compile-cache/v8-compile-cache.js:192:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:770:10)
    at Module.load (internal/modules/cjs/loader.js:628:32)
    at Function.Module._load (internal/modules/cjs/loader.js:555:12)
    at Module.require (internal/modules/cjs/loader.js:666:19)
    at require (YOUR_PROJECT_PATH/node_modules/v8-compile-cache/v8-compile-cache.js:161:20)
    at getDefaultSassImplementation (YOUR_PROJECT_PATH/node_modules/sass-loader/dist/getDefaultSassImplementation.js:24:10)
    at getSassImplementation (YOUR_PROJECT_PATH/node_modules/sass-loader/dist/getSassImplementation.js:19:72)
    at Object.loader (YOUR_PROJECT_PATH/node_modules/sass-loader/dist/index.js:40:61)
 @ ./src/ui/styles/global.scss 2:26-143
 @ ./src/ui/App.tsx
 @ ./src/ui/index.tsx

执行如下指令:
(cnmp) 或 npm install -g cnpm

(cnmp) 或 cnpm install

(cnmp)或 npm install node-sass

下载之后,运行项目,依然报错,于是开始百度,按照其他网友的指示,再执行一次 ***npm update***来更新项目里的依赖包,然后,大功告成。

一定要执行 npm update

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值