I want to try React on my Mac, but I face some difficulties when using it.
npm install -g create-react-app
But everytime I create a new project I have a huge node_modules folder in my project folder. AFAIK I don't need node_modules folder in every project if create-react-app installed globally. So what's the problem?
npm remove -g create-react-app
Error: EACCES: permission denied, unlink 'usr/local/bin/create-react-app'
So what do I do in this case?
npm install -g create-react-app
as either root or as sudo like so: sudo npm install -g create-react-app
. Try running sudo npm remove -g create-react-app
and see if that works.I couldn't use the new version of create-react-app with npx, so I tried to remove via the command npm uninstall -g create-react-app
. After that when I checked it still has "installed". So I have removed manually
rm -rf /usr/local/bin/create-react-app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With