code EACCES error solution!

preview_player
Показать описание
How to solve installation error of angular cli using the following code in Mac terminal "npm install -g @angular/cli"
checkPermissions Missing write access to /usr/local/lib/node_modules
npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! The operation was rejected by your operating system.
Рекомендации по теме
Комментарии
Автор

I found this after spending an hour on solutions from Stackoverflow. Good job! Thank you!

Srikar_kc
Автор

error on windows how to solved please?

ixc