create-app-react
Just tried to run the command create-app-react and got the following message:
`$ create-react-app contacts /usr/local/lib/node_modules/create-react-app/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:47 throw err0 ^
Error: EACCES: permission denied, mkdir '/contacts'
at Object.mkdirSync (fs.js:738:3)
at Object.mkdirsSync (/usr/local/lib/node_modules/create-react-app/node_modules/fs-extra/lib/mkdirs/mkdirs-sync.js:29:9)
at createApp (/usr/local/lib/node_modules/create-react-app/createReactApp.js:161:6)
at Object.
Running the code on a mac with npm v 6.3.0.
Could someone please support on this? Thanks!
try using the command
sudo npx create-react-app contacts
the permission denied error may be coming because you do not have the proper access rights.
@salcekosma Have a look at this https://docs.npmjs.com/getting-started/fixing-npm-permissions