Angular cli error when install npm packagees
please tell me the solution of the above error
Try adding Python to the path ?
http://superuser.com/questions/143119/how-to-add-python-to-the-windows-path
Please follow bellow thread, it solves the very same issue.. https://github.com/angular/angular-cli/issues/1560#issuecomment-238349893
Yes, if you install windows-build-tools by running npm install --global --production windows-build-tools the python error disappears.
Nevertheless, I'm still getting the node-pre-gyp errors saying that node-zopfli cannot be found.

@sajithaPriyankara : Yes I tried that thread/solution too. It keeps saying that Failed to locate: "CL.exe".
Oh, and I forgot to mention that if I install my dependencies with --no-optional flag then everything runs fine, without errors.
@elekzalan ,, Yes,, you are correct since most of the time node-gyp is being used as optional dependencies and --no-optional may solve it. But the thread I suggested fixed the very same issue without any trouble..
ARe you running it as administrator?
node-gyp installation has some fairly complicated requirements, check their installation guide.
Dupe, see https://github.com/angular/angular-cli/issues/1560#issuecomment-240913794 for clarification. You do not need node-gyp or anything else.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.