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