When creating a new react app via npx create-react-app client
, the application is created however the react-scripts command is not found and cannot run the start script. Is there anyway to fix this? [
Question 2 Also when running application node <direct path to react-scripts start file>
I cannot use the dotenv module as pollyfill is no longer supported for the fs and os modules? Any solutions?
I am using
- npm version: 8.19.2
- node version: v16.17.0
CodePudding user response:
this problem's have multiple problems , maybe you have to create app at desktop or at C disk (if Windows) , try this
- rm -rf node_modules
- rm -rf package-lock.json
- npm install
- change node version vie NVM (optional)
Second question check this dotenv-webpack