terminal permissions

Hi,

I'm trying to install the create-react-app command line interface (CLI) globally (

-g
):

npm install -g create-react-app

and I'm getting this error:

Error: EACCES: permission denied, access '/usr/local/lib/node_modules'

Please try running this command again as root/Administrator.


I am the administrator and am wondering how to get permission.

Any help would be great.

Thank you.

iMac with Retina 5K display, macOS High Sierra (10.13.3)

Posted on Feb 11, 2018 9:05 AM

Reply
Question marked as Top-ranking reply

Posted on Feb 11, 2018 11:26 AM

sudo is the way you should always issue commands needing admin permissions. It is a little concerning that you are using terminal without knowing how to use sudo. Maybe a basic terminal tutorial will help you to prevent major issues using terminal.

3 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

terminal permissions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.