I've been trying to install Create React App using NPM and it's giving me a permission denied error:
I force cleaned NPM cache and it did not work.
CodePudding user response:
Create React App doesn't suggest anymore to install with NPM you should use NPX so you don't need to sudo
anything.
Note:
npx on the first line is not a typo — it’s a package runner tool that comes with npm 5.2 .
Command:
npx create-react-app my-app
cd my-app
npm start
Reference the docs
CodePudding user response:
Try to run:
sudo chown -R dhananjayjoshi /usr/local/lib