2

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.

1 Answer 1

2

You can set previously npm's 'python' config key to the appropriate value:

$ npm config set python /path/to/executable/python2.7
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.