npm can't find python executable python you can set the python env variable

报错涵义

NPM无法找到python可执行python,你可以设置python的env变量

(1)先安装python2.7,见 blog.csdn.net/u012069313/… 我安装目录在D:\Python27,所以需要执行命令:

npm config set python d:\Python27\python.exe

(2)执行第(1)步后,如果报错:

could not find "msbuild.exe" in PATH - finding location in registry

执行以下命令:

npm install --global --production windows-build-tools

  •