Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create-reacte-app my-app using cmd. What could be the problem??? #1852

Closed
Nketsia opened this issue Apr 8, 2019 · 4 comments
Closed

Comments

@Nketsia
Copy link

Nketsia commented Apr 8, 2019

  • Version:
  • Platform:
  • Subsystem:
@Nketsia
Copy link
Author

Nketsia commented Apr 8, 2019

Desktop\react>npx create-react-app new-app
Error: EPERM: operation not permitted, mkdir 'C:\Users\Eddie'
TypeError: Cannot read property 'get' of undefined
at errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205:18)
at C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js:78:20
at cb (C:\Program Files\nodejs\node_modules\npm\lib\npm.js:228:22)
at C:\Program Files\nodejs\node_modules\npm\lib\npm.js:266:24
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:83:7
at Array.forEach ()
at C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:82:13
at f (C:\Program Files\nodejs\node_modules\npm\node_modules\once\once.js:25:25)
at afterExtras (C:\Program Files\nodejs\node_modules\npm\lib\config\core.js:173:20)
at C:\Program Files\nodejs\node_modules\npm\node_modules\mkdirp\index.js:47:53
C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205
if (npm.config.get('json')) {
^

TypeError: Cannot read property 'get' of undefined
at process.errorHandler (C:\Program Files\nodejs\node_modules\npm\lib\utils\error-handler.js:205:18)
at process.emit (events.js:189:13)
at process._fatalException (internal/bootstrap/node.js:496:27)
Install for create-react-app@latest failed with code 7

@cjihrig cjihrig transferred this issue from nodejs/node Apr 8, 2019
@DylanMerigaud
Copy link

zkat/npx#100 (comment)

running cmd through administrator works for me

@gireeshpunathil
Copy link
Member

ping @Nketsia - does @DylanMerigaud 's suggestion help you?

@gireeshpunathil
Copy link
Member

answered, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants