Angular-cli: Angular cli error when install npm packagees

Created on 20 Sep 2016  路  8Comments  路  Source: angular/angular-cli

captures
please tell me the solution of the above error

Most helpful comment

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.
untitled

@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.

All 8 comments

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.
untitled

@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._

Was this page helpful?
0 / 5 - 0 ratings