npm install报错gyp ERR&! stack Error: Can‘t find Python executable python

晕了,今天安装react脚手架突然报这种奇怪的错 ,前几天还没事的。。。。

 搞了一晚上,才找到解决办法

原来是npm版本问题,我原本的版本是7.20.2,把版本降到6.14.6就行了

npm i -g [email protected]

猜你喜欢

转载自blog.csdn.net/A_D_H_E_R_E/article/details/119192069