I am facing issue while i run npm install and npm start in React js template

I have downloaded a simple template from GitHub. When i tried to install npm install for node_modules it shows following errors.

npm ERR! code E404 npm ERR! 404 Object Not Found - GET - not_found npm ERR! 404 npm ERR! 404 'yocto-queue@ is not in this registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Ali\AppData\Local\npm-cache\_logs\2022-01-24T15_02_47_113Z-debug.log 

**

when i write npm start following errors are showing.

** node:internal/modules/cjs/loader:936 throw err; ^

Error: Cannot find module 'react' Require stack:

  • C:\Users\Ali\AppData\Roaming\npm\node_modules\react-scripts\scripts\start.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.resolve (node:internal/modules/cjs/helpers:108:19) at Object. (C:\Users\Ali\AppData\Roaming\npm\node_modules\react-scripts\scripts\start.js:43:31) at Module._compile (node:internal/modules/cjs/loader:1101:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [ 'C:\Users\Ali\AppData\Roaming\npm\node_modules\react-scripts\scripts\start.js' ] }

my package.json

{ "name": "client", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.11.4", "@testing-library/react": "^11.1.0", "@testing-library/user-event": "^12.1.10", "axios": "^0.21.1", "bootstrap": "^5.0.2", "react": "^17.0.2", "react-bootstrap": "^1.6.1", "react-dom": "^17.0.2", "react-icons": "^4.2.0", "react-router-bootstrap": "^0.25.0", "react-router-dom": "^5.2.0", "react-scripts": "4.0.3", "web-vitals": "^1.0.1" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "main": "index.js", "author": "zain", "license": "ISC", "description": "" } 
4

Related questions 0 npm start givin error 1 Error in `npm install` in react.js 0 Not able to install MERN stack Related questions 0 npm start givin error 1 Error in `npm install` in react.js 0 Not able to install MERN stack 2 whenever i run npm start on my react it gives an error. Image below 0 I met problem with npm start in reactjs, what happen? 11 React App failed to compile after install 2 I get the following error when running "npm start" 0 How can I reslove npm ERR 1 I'm facing problem with install yarn and use it but node is working finely 0 After running all the installations I'm getting an error, how to fix it? Load 7 more related questions Show fewer related questions

Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like