If you use npm 5.1 or earlier, you can't use npx
.
Instead, install create-react-app
globally:
npm install -g create-react-app
Now you can run:
create-react-app my-app
If you use npm 5.1 or earlier, you can't use npx
.
Instead, install create-react-app
globally:
npm install -g create-react-app
Now you can run:
create-react-app my-app
Thank you so much. It was helpful me.
Hi
The error in the image is related to an issue with Node.js's OpenSSL module, specifically regarding digital envelope routines:unsupported. This often occurs when the version of OpenSSL bundled with Node.js is incompatible with certain modules or cryptographic functions being used by the project.
Here are a few steps to resolve this issue:
npm install react-scripts@latest
nvm install 18
nvm use 18
export NODE_OPTIONS=--openssl-legacy-provider
Alternatively, you can add it directly to your package.json start script:
"scripts": {
"start": "react-scripts start --openssl-legacy-provider"
}
rm -rf node_modules package-lock.json
npm install
Try one or more of these solutions to resolve the issue.
thanks