command not found:create-react-app
npm install -g create-react-app
...then start creating react app
npx create-react-app my-app
command not found:create-react-app
npm install -g create-react-app
...then start creating react app
npx create-react-app my-app
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
//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
now run
npx create-react-app my-app
//HOPE THIS WILL WORK BECAUSE ITS THE ONLY REASON OF YOUR QUERY.
$ npx-create-react-app chatapp bash: npx-create-react-app: command not found
export PATH=$HOME/.node_modules_global/bin:$PATH
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us