create-react-app icon indicating copy to clipboard operation
create-react-app copied to clipboard

create-app-react

Open salcekosma opened this issue 8 years ago • 2 comments

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. (/usr/local/lib/node_modules/create-react-app/createReactApp.js:148:1) at Module._compile (internal/modules/cjs/loader.js:689:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10) at Module.load (internal/modules/cjs/loader.js:599:32) at tryModuleLoad (internal/modules/cjs/loader.js:538:12) at Function.Module._load (internal/modules/cjs/loader.js:530:3) at Module.require (internal/modules/cjs/loader.js:637:17)`

Running the code on a mac with npm v 6.3.0.

Could someone please support on this? Thanks!

salcekosma avatar Aug 12 '18 17:08 salcekosma

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.

shreyanshjn avatar Aug 12 '18 23:08 shreyanshjn

@salcekosma Have a look at this https://docs.npmjs.com/getting-started/fixing-npm-permissions

kartiklad avatar Aug 15 '18 04:08 kartiklad