【问题标题】:Node Sass does not yet support your current environmentNode Sass 还不支持你当前的环境
【发布时间】:2022-06-14 21:21:12
【问题描述】:
./src/styles/global.scss (*./node_modules/css-loader/dist/cjs.js??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/resolve-url-loader??ref--6-oneOf-5-3!./node_modules/sass-loader/dist/cjs.js??ref--6-oneOf-5-4!./src/styles/global.scss*)  
**Error**: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (93)  
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.14.1

【问题讨论】:

  • 你的节点版本是多少?

标签: reactjs sass


【解决方案1】:

第一个解决方案

确保您的node 版本不优于最新的稳定版本,当前为v16.15.0。然后你会想要使用sass 包而不是node-sass,因为它已被弃用。为此:

npm uninstall node-sass --save
npm install sass --save

第二种解决方案

如果您出于某种原因想要或需要node-sass,您应该将您的nodes.js 版本降级为喜欢v14。为此,您可以使用来自 npm 的 n 包,如下所示:

npm install -g n
n 14
# if one of the commands does not pass, you may need to use sudo
sudo npm install -g n
sudo n 14

【讨论】:

    猜你喜欢
    • 2020-03-11
    • 1970-01-01
    • 2018-05-06
    • 2020-01-25
    • 2016-09-16
    • 2019-09-22
    • 2019-02-14
    • 2021-02-15
    • 2018-04-22
    相关资源
    最近更新 更多