Show Tags:Javascript ExampleRelatedThis should solve the issue; $ sudo rm -fr node_modules/ package-lock.json $ sudo npm cache clean --force $ sudo npm i react-scripts --unsafe-perm $ sudo npm i --unsafe-permIf still throws error,
Npm package versions and your environment are conflicting. Only way to fix is installing different versions and trying to find compatible environment to run your app. score:0 It is showing an error about react-scripts is not available in your node-modules folder. Check your package.json file if you find "react-scripts": "3.4.1". You can hit the command: npm install react-scripts --saveOr you can add "react-scripts": "3.4.1" manually. score:1 Run "npm install -g react-scripts". This is outside the folder you are trying to run. This will cause the command to be recognized internally. score:1 Sometime scripts are installed but prevented from running because of OS security policies. If you are working in a new setup, run Powershell as Administrator and run this command and try running your script afterwards score:2 What I've noticed is that if you switch frequently version of packages, this issue pops up. Mostly its a cache issue. and would be resolved by performing following steps:
score:17 There is some issue in npm install which is not able to complete the installation of react scripts. Follow these simple steps to get it worked.
It should work now. Related Query
More Query from same tag
What is NPM craco?Create React App Configuration Override is an easy and comprehensible configuration layer for create-react-app. Get all the benefits of create-react-app and customization without using 'eject' by adding a single configuration (e.g. craco. config.
|