npm install node-sass 报错 gyp verb cli

明明安装了python,python命令也是可用的,但就是报错:

gyp verb check python checking for Python executable "D:\softWare\install\python2" in the PATH

npm ERR! gyp verb `which` failed Error: not found: D:\softWare\install\python2

是因为node版本和node-sass版本不匹配:

node -v 查看node版本为16,但package.json中的依赖 node-sass为4  

修改node-sass版本:npm i node-sass@6.0.1

安装成功

 

 yarn start 还是报错:

 

 具体解决方案查看该链接:https://www.cnblogs.com/xkxf/p/15952815.html

posted @ 2022-10-19 17:33  邱小嘤  阅读(2222)  评论(0编辑  收藏  举报