我正在尝试运行以下命令: npm install -g bower gulp cordova ionic tsd@next karma-cli protractor node-gyp coffee-script js-beautify typescript npm-check
我已经安装了 Python、Visual Studio Express 和 node-gyp,所以我认为我会很好,但是我收到以下错误:
关于 "Can't find Python executable "python", you can set the PYTHON env variable."
错误,我有点困惑,因为我已经像这样设置了 PYTHON 环境变量:
请问有什么想法吗?
原文由 Nick 发布,翻译遵循 CC BY-SA 4.0 许可协议
您必须将 python 添加到您的 PATH 变量中。您可以做的一件事是现在编辑您的路径变量并添加
;%PYTHON%;
你的变量 PYTHON 应该指向你的 python 安装的根目录。