Reputation: 967
I am trying to install @angular-cli through npm.
I am getting the below error.
gyp verb check python checking for Python executable "python2" in the PATH
gyp verb `which` failed Error: not found: python2
I guess, python is not present in the path. But i dont have administrator account, to make changes in environmental variable.
Is there any way to run npm install -g @angular/cli by mentioning python path while running npm install.
Upvotes: 2
Views: 2277
Reputation: 398
You can set previously npm's 'python' config key to the appropriate value:
$ npm config set python /path/to/executable/python2.7
Upvotes: 2