尝试了很多方法:
sass-loader node-sass 对应版本不匹配造成的问题。
或者gyp verb check python checking for Python executable "python2" in the PATH 等问题。
只用以下方式进行安装可以完全规避安装报错。
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g yarn
yarn install
本文提供了一种可靠的解决方案来避免Sass安装过程中遇到的错误,例如sass-loader与node-sass版本不匹配或gyp verb检查Python可执行文件等问题。通过使用特定命令安装cnpm和yarn,再运行yarn install,可以有效避免安装过程中的各种报错。
尝试了很多方法:
sass-loader node-sass 对应版本不匹配造成的问题。
或者gyp verb check python checking for Python executable "python2" in the PATH 等问题。
只用以下方式进行安装可以完全规避安装报错。
npm install -g cnpm --registry=https://registry.npm.taobao.org
cnpm install -g yarn
yarn install
1219

被折叠的 条评论
为什么被折叠?
&spm=1001.2101.3001.5002&articleId=128324969&d=1&t=3&u=22f342984f134f25baf012510335dd99)