Trouble setting up development environment for React

Hi! I just started React course and had to set up node.js
($npm i -g create-react-app@1.5.2) but i keep getting this error. Does anyone know what’s going on? Any help is much appreciated!!

Run your command prompt with administration permission from your computer and see

1 Like

thank you for your help!

i ran this command before doing what Mosh instructed with this:

sudo chown -R $USER /usr/local/lib/node_modules

and now it’s working!

1 Like