Answers for "npx create-react-app v2 Error: EPERM: operation not permitted, mkdir 'C:\Users\Viktor' command not found: create-react-app"

-1

Error: EPERM: operation not permitted, mkdir 'C:UsersAnubhab' command not found: create-react-app

Open terminal
to go to "C:/Users>" type: cd..
then run: dir /x
// this will show you your short id: ANUBHA~1 for username: Anubhab Mukherjee
then run: npm config set cache "C:/Users/<short-id-you-got>/AppData/Roaming/npm-cache" --global
// in my case
// npm config set cache "C:/Users/ANUBHA~1/AppData/Roaming/npm-cache" --global

then run desired npx command
THIS MIGHT SOLVE YOUR PROBLEM
Posted by: Guest on May-14-2021
0

npx create-react-app v2 Error: EPERM: operation not permitted, mkdir 'C:UsersViktor' command not found: create-react-app

Try installing it globally first, using the command
npm install -g create-react-app

And then, you can create your app using the command,
npx create-react-app <Name of your app>

Hope this helps :)
Posted by: Guest on January-05-2022

Code answers related to "npx create-react-app v2 Error: EPERM: operation not permitted, mkdir 'C:\Users\Viktor' command not found: create-react-app"

Browse Popular Code Answers by Language