NodeJs npm install 出现 Can't find Python executable

NodeJs npm install 出现 Can't find Python executable "python"

NodeJs npm install 出现 Can't find Python executable "python"

在学习NodeJs过程中,某次执行npm install指令抛出了以下异常

Error: Can't find Python executable "python", you can set the PYTHON env variable.

通过“面向搜索引擎”学习的思维,我从stackoverflow了解到,我需要使用以管理员身份运行cmd或者PowerShell来执行
npm install -g windows-build-tools命令安装一个工具

这时候删除项目目录下的node_modules再执行一次npm install即可,正常来说应该是没什么问题了,但是我这因为是二开,所以获得了一个新的异常,恭喜我!

# NodeJs  npm 

评论

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×