美文网首页
Win10 安装 node-sass

Win10 安装 node-sass

作者: ads | 来源:发表于2020-07-26 14:28 被阅读0次

    首先 将 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

    相关文章

      网友评论

          本文标题:Win10 安装 node-sass

          本文链接:https://www.haomeiwen.com/subject/gqiwlktx.html