2017-08-09 119 views
0

我試圖通過npm安裝@ angular-cli。是否可以在沒有Python路徑的情況下運行npm install環境變量

我收到下面的錯誤。

gyp verb check python checking for Python executable "python2" in the PATH 
gyp verb `which` failed Error: not found: python2 

我想,python不存在的路徑。但我沒有管理員帳戶,要對環境變量進行更改。

有沒有辦法運行NPM通過提蟒蛇路徑安裝-g @角/ CLI在運行NPM安裝

回答

0

您可以預先設定的新公共管理的「蟒蛇」配置重點爲適當的值:

$ npm config set python /path/to/executable/python2.7 
相關問題