Question : Error: EPERM: operation not permitted, mkdir 'C:\Users\User' command not found: create-next-app
Answered by : condemned-cheetah-j6mx8b9u9581
//For React app... // first run this command npm install -g create-react-app // then run this one. npx create-react-app
//For Next js... //first run this command npm install -g create-next-app //then run this command npx create-next-app
Source : | Last Update : Mon, 07 Feb 22
Question : Error: EPERM: operation not permitted, mkdir 'C:\Users\SHUBHAM~KUNWAR' command not found: create-react-app
Answered by : shubham-kunwar
Open Terminal
Go to c:/users and run dir /x
check shorter name of your usernsme you found with dir/x
//In my case my username is Nandini Jain and I got short id= NANDIN~1
and run npm config set cache "C:/Users/<shortname-you-found-with-dir/x>/AppData/Roaming/npm-cache" --global
//I ran the command
//C:/Users/NANDIN~1/AppData/Roaming/npm-cache" --global
HOPE THIS WILL WORK BECAUSE ITS THE ONLY REASON OF YOUR QUERY.
Source : | Last Update : Wed, 20 Jan 21