error eperm operation not permitted mkdir command not found create-react-app code example
Example 1: Error: EPERM: operation not permitted, mkdir 'C:\Users\SHUBHAM~KUNWAR' command not found: create-react-app
Open Terminal
Go to c:/users and run dir /x
check shorter name of your usernsme you found with dir/x
and run npm config set cache "C:/Users/<shortname-you-found-with-dir/x>/AppData/Roaming/npm-cache" --global
HOPE THIS WILL WORK BECAUSE ITS THE ONLY REASON OF YOUR QUERY.
Example 2: npx create app not working eperm operation not permitted mkdir
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>
Example 3: Error: EPERM: operation not permitted, mkdir 'C:\Users\Anubhab' command not found: create-react-app
Open terminal
to go to "C:/Users>" type: cd..
then run: dir /x
then run: npm config set cache "C:/Users/<short-id-you-got>/AppData/Roaming/npm-cache" --global
then run desired npx command
THIS MIGHT SOLVE YOUR PROBLEM