Skip to content
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

Node 16.17.0 not supported to angular/cli@13.3.5 #23777

Closed
vinaysomawat opened this issue Aug 22, 2022 · 5 comments
Closed

Node 16.17.0 not supported to angular/cli@13.3.5 #23777

vinaysomawat opened this issue Aug 22, 2022 · 5 comments

Comments

@vinaysomawat
Copy link

My angular application was working fine for node version 14.15.0.

I upgrade my node version to 16.17.0 and deleted the node_modules folder and package-lock.json.

Now I'm trying to do npm install but I'm getting the below error.
image

@alan-agius4
Copy link
Collaborator

Do you have a direct dependency on node-sass, if so remove it.

You can check by running he below command.

npm ls node-sass

@vinaysomawat
Copy link
Author

vinaysomawat commented Aug 22, 2022

Nope, there is no direct dependency on node-sass

Screenshot 2022-08-22 at 3 11 45 PM

@alan-agius4
Copy link
Collaborator

Can you please share the contents of your package.json please? Thanks.

@vinaysomawat
Copy link
Author

vinaysomawat commented Aug 22, 2022

@alan-agius4 The above issue is coming due to node-sass since node-sass incompatibility with Node 16.

It works fine after setting the below flag

CXXFLAGS="--std=c++14" npm install worked for me on M14 Mac. Reference

@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 22, 2022
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

2 participants