Skip to main content

react-scripts start

 npm start


> reactjquery@0.1.0 start F:\my pro\dt\reactjquery

> react-scripts start



There might be a problem with the project dependency tree.

It is likely not a bug in Create React App, but something you need to fix locally.


The react-scripts package provided by Create React App requires a dependency:


  "webpack": "4.44.2"


Don't try to install it manually: your package manager does it automatically.

However, a different version of webpack was detected higher up in the tree:


  F:\my pro\dt\reactjquery\node_modules\webpack (version: 5.47.1)


Manually installing incompatible versions is known to cause hard-to-debug issues.


If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.

That will permanently disable this message but you might encounter other issues.


To fix the dependency tree, try following the steps below in the exact order:


  1. Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.

  2. Delete node_modules in your project folder.

  3. Remove "webpack" from dependencies and/or devDependencies in the package.json file in your project folder.    

  4. Run npm install or yarn, depending on the package manager you use.


In most cases, this should be enough to fix the problem.

If this has not helped, there are a few other things you can try:


  5. If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead.

     This may help because npm has known issues with package hoisting which may get resolved in future versions.   


  6. Check if F:\my pro\dt\reactjquery\node_modules\webpack is outside your project directory.

     For example, you might have accidentally installed something in your home folder.


  7. Try running npm ls webpack in your project folder.

     This will tell you which other package (apart from the expected react-scripts) installed webpack.


If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project.

That would permanently disable this preflight check in case you want to proceed anyway.


P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!


npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! reactjquery@0.1.0 start: `react-scripts start`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the reactjquery@0.1.0 start script.


npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\kisho\AppData\Roaming\npm-cache\_logs\2021-09-01T03_04_45_151Z-debug.log

PS F:\my pro\dt\reactjquery> npm i webpack

npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.14.5 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.

npm WARN optimize-css-assets-webpack-plugin@5.0.4 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

npm WARN webpack-manifest-plugin@2.2.0 requires a peer of webpack@2 || 3 || 4 but none is installed. You must install peer dependencies yourself.

npm WARN workbox-webpack-plugin@5.1.4 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself. 

npm WARN acorn-import-assertions@1.7.6 requires a peer of acorn@^8 but none is installed. You must install peer dependencies yourself.      


+ webpack@5.51.1

added 4 packages from 9 contributors, removed 36 packages, updated 5 packages and audited 1876 packages in 32.657s


147 packages are looking for funding

  run `npm fund` for details


found 6 vulnerabilities (3 moderate, 3 high)

  run `npm audit fix` to fix them, or `npm audit` for details

PS F:\my pro\dt\reactjquery> npm audit fix

npm WARN @babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@7.14.5 requires a peer of @babel/core@^7.13.0 but none is installed. You must install peer dependencies yourself.

npm WARN acorn-import-assertions@1.7.6 requires a peer of acorn@^8 but none is installed. You must install peer dependencies yourself.

npm WARN optimize-css-assets-webpack-plugin@5.0.4 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.

npm WARN tsutils@3.21.0 requires a peer of typescript@>=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta but none is installed. You must install peer dependencies yourself.

npm WARN webpack-manifest-plugin@2.2.0 requires a peer of webpack@2 || 3 || 4 but none is installed. You must install peer dependencies yourself.

npm WARN workbox-webpack-plugin@5.1.4 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself.


removed 36 packages and updated 1 package in 18.251s


148 packages are looking for funding

  run `npm fund` for details


fixed 3 of 6 vulnerabilities in 1876 scanned packages

  3 vulnerabilities required manual review and could not be updated

Comments

Popular posts from this blog

Software Versions You Must Have..!

Google Chrome       Version 29 and Version 37 of Google Chrome works much better than any other version.I updated my Google Chrome but it was lagging,not responding, crashed,contents were loaded very slow and few more.So,finally I found Google Chrome 37 working better,bugs fixed and you can download this to fix the previous problems. 2. KM Player Really awesome player to watch HD Videos,movies.Compatible with all extensions of videos you want to watch whether it is mkv,3gp,flv,HD,4K etc.KM Player has very good 3D mode.You can watch multiple videos at a time.I found version 3.6 & 3.9 useful,but in between versions were very Ads providing, lagging every time when you open the Player. 3. iTunes & Quick Time Player  Hats off to the creator 'Apple Inc.'. iTunes- name is enough.I use default audio player as iTunes.You can feel the sound clarity when you are changing it to other mode like Pop,Rock,Acoustic,Bass etc. iT...

End of support for Windows 10, Windows 8.1 and Windows 7

Here's more you can read about the support:  link How you can move to Windows 11 Frequently asked questions   What can I do with my old computer? Trade it  in or  recycle it  with local organizations. Will my Windows 10 PC stop working? No. Your PC will continue to work, but support will be discontinued. How is Windows 11 more secure? Windows 11 is the most secure Windows ever built, with comprehensive end-to-end security that covers antivirus, firewall, internet protections, and more.  Read more  about Windows security.