React Project-Node sass无法找到您当前环境的绑定

问题描述 投票:0回答:1

我正在使用React

“反应”:“ ^ 16.13.1”,

并且我想使用Sass,所以我安装Node-sass:

“ node-sass”:“ ^ 4.13.1”,

我有这个错误:

enter image description here

我试图解决如下问题:

npm重建node-sass我删除了node-modules文件夹并再次运行npm我>

但错误仍然存​​在

我将节点版本更新为:

v13.13.0

再来一次

enter image description here

此应用程序的dockerfile具有:

FROM节点:13-高山

我正在使用React“ react”:“ ^ 16.13.1”,并且我想使用Sass,所以我安装了Node-sass:“ node-sass”:“ ^ 4.13.1”,并且我遇到了这个错误:我尝试解决如下问题:npm重建node-sass I ...

node.js reactjs node-modules node-sass
1个回答
0
投票

您无法在Mac上安装,然后与Alpine(或任何其他)Docker容器共享node_modules文件夹。如果您正在使用诸如node-sass之类的任何本机模块,请安装在容器内部。

© www.soinside.com 2019 - 2024. All rights reserved.