bash create-react-app command not found code example
Example 1: command not found:create-react-app
npm install -g create-react-app
...then start creating react app
npx create-react-app my-app
Example 2: 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
now run
npx create-react-app my-app
Example 3: $ npx-create-react-app chatapp bash: npx-create-react-app: command not found
export PATH=$HOME/.node_modules_global/bin:$PATH
Example 4: create-react-app not found
npm install -g create-react-app