【发布时间】:2017-08-09 11:16:17
【问题描述】:
我正在尝试通过 npm 安装 @angular-cli。
我收到以下错误。
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
我猜,python 不在路径中。但我没有管理员帐户,无法更改环境变量。
有什么方法可以运行 npm install -g @angular/cli 在运行 npm install 时提及 python 路径。
【问题讨论】:
标签: node.js windows cmd npm npm-install