Amir Nouyan
Amir Nouyan

Reputation: 33

Having trouble with WebStorm, ERROR: EPERM: operation not permitted

"C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npx-cli.js" --ignore-existing create-react-app .
Error: EPERM: operation not permitted, mkdir 'C:\Users\Amir'
command not found: create-react-app
Done

I've just created a new project in WebStorm and I get the error message above.

I have no clue how to fix it and would appreciate any and all help.

Upvotes: 1

Views: 852

Answers (1)

lena
lena

Reputation: 93868

You must have a space in your user name... It's a known issue with npx, you will face similar problems when creating your application in terminal, see https://github.com/facebook/create-react-app/issues/6512 and https://github.com/facebook/create-react-app/issues/9091, for example. See https://github.com/zkat/npx/issues/146#issuecomment-384019497 for possible workaround

Upvotes: 1

Related Questions