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
即可,正常来说应该是没什么问题了,但是我这因为是二开,所以获得了一个新的异常,恭喜我!