hbbbs

Win10 安装 node-sass

首先  将 npm的源设置为 阿里源。

然后再执行下面操作:

1、node-sass 需要 python2,所以需要先安装 python2.x版本,而且要放入环境变量 PATH 中,

还有一点特别要注意: 要复制一份 python.exe ,改名为 python2.exe,因为 sass到时候是调用 python2.exe。

 

2、运行  npm install -g node-gyp

3、运行  npm install --global --production windows-build-tools

 

这样操作后基本OK了,node-sass是出名的难安装。

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-20
  • 2021-06-21
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-02
  • 2021-09-02
  • 2022-01-12
  • 2022-12-23
相关资源
相似解决方案