Skip to content

Angular cli error when install npm packagees #2242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AnasSharif opened this issue Sep 20, 2016 · 8 comments
Closed

Angular cli error when install npm packagees #2242

AnasSharif opened this issue Sep 20, 2016 · 8 comments

Comments

@AnasSharif
Copy link

captures
please tell me the solution of the above error

@ruffiem
Copy link

ruffiem commented Sep 20, 2016

@sajithaPriyankara
Copy link

sajithaPriyankara commented Sep 20, 2016

Please follow bellow thread, it solves the very same issue..
#1560 (comment)

@elekzalan
Copy link

elekzalan commented Sep 20, 2016

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.

@sajithaPriyankara
Copy link

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

@w0bbes
Copy link

w0bbes commented Sep 20, 2016

ARe you running it as administrator?

@bonnici
Copy link

bonnici commented Sep 20, 2016

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

@filipesilva
Copy link
Contributor

Dupe, see #1560 (comment) for clarification. You do not need node-gyp or anything else.

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants