Angular: Trouble installing Angular due to SASS errors.

curiouswebster
curiouswebster used Ask the Experts™
on
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?

Thanks
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2017
Distinguished Expert 2018
Commented:
This post seems to indicate that this might help
npm -g --unsafe-perm install node-sass

Open in new window

curiouswebsterSoftware Engineer

Author

Commented:
I did re-install SASS with success. Thanks.

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial