npm - “找不到 Python 可执行文件“python",您可以设置 PYTHON 环境变量." [英] npm - "Can't find Python executable "python", you can set the PYTHON env variable."
问题描述
我正在尝试运行以下命令:npm install -g bower gulpcordova 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 环境变量:
有什么想法吗?
您必须将 python 添加到您的 PATH 变量中.您可以做的一件事是现在编辑您的 Path 变量并添加
;%PYTHON%;
你的变量 PYTHON 应该指向你的 python 安装的根目录.
I'm trying to run the following command: npm install -g bower gulp cordova ionic tsd@next karma-cli protractor node-gyp coffee-script js-beautify typescript npm-check
I have installed Python, Visual Studio Express and node-gyp so thought I'd be good to go, however I get the following errors:
Regarding the "Can't find Python executable "python", you can set the PYTHON env variable."
error, I'm a little confused because I have set the PYTHON environmental variable like so:
Any ideas please?
You got to add python to your PATH variable. One thing you can do is Edit your Path variable now and add
;%PYTHON%;
Your variable PYTHON should point to the root directory of your python installation.
这篇关于npm - “找不到 Python 可执行文件“python",您可以设置 PYTHON 环境变量."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!