修复node-sass报错gyp verb `which` failed Error: not found: python
猜测是虽然有安装python,但是npm没有找到。
·
vue项目执行`npm install`时报错:
npm ERR! gyp verb check python checking for Python executable "python" in the PATH
npm ERR! gyp verb `which` failed Error: not found: python
猜测是虽然有安装python,但是npm没有找到。
解决办法
其实不用单独安装python,可以使用npm的开发工具包:
npm install -g windows-build-tools
注:这个命令需要管理员身份运行命令提示符,否则回报错:`The build tools cannot be installed without administrative rights.`。
安装成功后再次执行npm install,执行成功,项目可以正常运行了。
更多推荐
所有评论(0)