1、删除 node_modules 文件夹。
2、在 Terminal 运行 npm install --global windows-build-tools --save
3、再安装node-sass npm install node-sass@4.12.0 --save (或最新版本)到这里,错误应该就已经解决了,收到了 gyp info ok 的提示!
4、如果遇到 Node Sass could not find a binding for your current environment,再运行 npm rebuild node-sass 就可以了
npm install 报错 check python checking for Python executable python2 in the PATH
最新推荐文章于 2023-05-26 10:49:42 发布