Angular: Trouble installing Angular due to SASS errors.

I navigated to my Angular project folder and typed:
npm install angular-material --save

I got errors, than first used "sudo su" and entered my password. But I got this error:

gyp verb ensuring nodedir is created /Users/newbieweb/Documents/Git/PuzzlePeace/node_modules/node-sass/.node-gyp/8.6.0
gyp WARN EACCES user "root" does not have permission to access the dev dir "/Users/newbieweb/Documents/Git/PuzzlePeace/node_modules/node-sass/.node-gyp/8.6.0"

What shall I do?

Is SaSS not installed?

How do I verify (or re-install) SaSS?

newbiewebSr. Software EngineerAsked:
Who is Participating?
Julian HansenCommented:
This post seems to indicate that this might help
npm -g --unsafe-perm install node-sass

Open in new window

newbiewebSr. Software EngineerAuthor Commented:
I did re-install SASS with success. Thanks.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.