angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Angular cli error when install npm packagees

Open AnasSharif opened this issue 10 years ago • 8 comments

captures please tell me the solution of the above error

AnasSharif avatar Sep 20 '16 07:09 AnasSharif

Try adding Python to the path ?

http://superuser.com/questions/143119/how-to-add-python-to-the-windows-path

ruffiem avatar Sep 20 '16 08:09 ruffiem

Please follow bellow thread, it solves the very same issue.. https://github.com/angular/angular-cli/issues/1560#issuecomment-238349893

sajithaPriyankara avatar Sep 20 '16 08:09 sajithaPriyankara

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 avatar Sep 20 '16 08:09 elekzalan

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

sajithaPriyankara avatar Sep 20 '16 09:09 sajithaPriyankara

ARe you running it as administrator?

w0bbes avatar Sep 20 '16 12:09 w0bbes

node-gyp installation has some fairly complicated requirements, check their installation guide.

bonnici avatar Sep 20 '16 23:09 bonnici

Dupe, see https://github.com/angular/angular-cli/issues/1560#issuecomment-240913794 for clarification. You do not need node-gyp or anything else.

filipesilva avatar Oct 03 '16 13:10 filipesilva

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.