question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

npm start command is not working,Reatc js issue

See original GitHub issue

$ npm start

keeper-app-part-1-starting@1.0.0 start C:\Users\Sukh-work\Desktop\sukh-work\REACT.JS-Work\Keerper-App react-scripts start

npm ERR! code ELIFECYCLE npm ERR! syscall spawn C:\WINDOWS\system32\cmd.exe npm ERR! file C:\WINDOWS\system32\cmd.exe npm ERR! path C:\WINDOWS\system32\cmd.exe npm ERR! errno -4058 npm ERR! keeper-app-part-1-starting@1.0.0 start: react-scripts start npm ERR! spawn C:\WINDOWS\system32\cmd.exe ENOENT npm ERR! npm ERR! Failed at the keeper-app-part-1-starting@1.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Sukh-work\AppData\Roaming\npm-cache_logs\2020-07-16T20_53_55_112Z-debug.log


{ “name”: “keeper-app-part-1-starting”, “version”: “1.0.0”, “keywords”: [], “main”: “src/index.js”, “dependencies”: { “react”: “16.8.6”, “react-dom”: “16.8.6”, “react-scripts”: “^3.4.1” }, “devDependencies”: { “typescript”: “3.3.3” }, “scripts”: { “start”: “react-scripts start”, “build”: “react-scripts build”, “test”: “react-scripts test --env=jsdom”, “eject”: “react-scripts eject” }, “browserslist”: [ “>0.2%”, “not dead”, “not ie <= 11”, “not op_mini all” ], “author”: “”, “license”: “ISC”, “description”: “” }

0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli ‘C:\Program Files\nodejs\node.exe’, 1 verbose cli ‘C:\Users\Sukh-work\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘start’ 1 verbose cli ] 2 info using npm@6.14.6 3 info using node@v12.18.2 4 verbose run-script [ ‘prestart’, ‘start’, ‘poststart’ ] 5 info lifecycle react-complete-guide@0.1.0~prestart: react-complete-guide@0.1.0 6 info lifecycle react-complete-guide@0.1.0~start: react-complete-guide@0.1.0 7 verbose lifecycle react-complete-guide@0.1.0~start: unsafe-perm in lifecycle true 8 verbose lifecycle react-complete-guide@0.1.0~start: PATH: C:\Users\Sukh-work\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\Sukh-work\Desktop\sukh-work\REACT.JS-Work\burgerApp-part-1\node_modules.bin;C:\Users\Sukh-work\bin;C:\Users\Sukh-work\AppData\Local\Programs\Git\mingw64\bin;C:\Users\Sukh-work\AppData\Local\Programs\Git\usr\local\bin;C:\Users\Sukh-work\AppData\Local\Programs\Git\usr\bin;C:\Users\Sukh-work\AppData\Local\Programs\Git\usr\bin;C:\Users\Sukh-work\AppData\Local\Programs\Git\mingw64\bin;C:\Users\Sukh-work\AppData\Local\Programs\Git\usr\bin;C:\Users\Sukh-work\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0;C:\WINDOWS\System32\OpenSSH;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\C;C:\Users\Sukh-work\AppData\Local\Programs\Git\Users\Ivana\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Python 3.7;C:\Program Files\nodejs;%NVM_HOME%;%NVM_SYMLINK%;C:\Users\Sukh-work\AppData\Local\Microsoft\WindowsApps;C:\Users\Sukh-work\AppData\Local\hyper\app-3.0.2\resources\bin;C:\Users\Sukh-work\AppData\Local\Programs\Git\cmd;C:\ProgramData\Sukh-work\atom\bin;C:\Users\Sukh-work\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\Sukh-work\AppData\Roaming\npm;C:\Users\Sukh-work\AppData\Local\Programs\Git\usr\bin\vendor_perl;C:\Users\Sukh-work\AppData\Local\Programs\Git\usr\bin\core_perl 9 verbose lifecycle react-complete-guide@0.1.0~start: CWD: C:\Users\Sukh-work\Desktop\sukh-work\REACT.JS-Work\burgerApp-part-1 10 silly lifecycle react-complete-guide@0.1.0~start: Args: [ ‘/d /s /c’, ‘node scripts/start.js’ ] 11 info lifecycle react-complete-guide@0.1.0~start: Failed to exec start script 12 silly lifecycle react-complete-guide@0.1.0~start: Returned: code: -4058 signal: null 13 info lifecycle react-complete-guide@0.1.0~start: Failed to exec start script 14 verbose stack Error: react-complete-guide@0.1.0 start: node scripts/start.js 14 verbose stack spawn C:\WINDOWS\system32\cmd.exe ENOENT 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19) 14 verbose stack at onErrorNT (internal/child_process.js:469:16) 14 verbose stack at processTicksAndRejections (internal/process/task_queues.js:84:21) 15 verbose pkgid react-complete-guide@0.1.0 16 verbose cwd C:\Users\Sukh-work\Desktop\sukh-work\REACT.JS-Work\burgerApp-part-1 17 verbose Windows_NT 10.0.18363 18 verbose argv “C:\Program Files\nodejs\node.exe” “C:\Users\Sukh-work\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js” “start” 19 verbose node v12.18.2 20 verbose npm v6.14.6 21 error code ELIFECYCLE 22 error syscall spawn C:\WINDOWS\system32\cmd.exe 23 error file C:\WINDOWS\system32\cmd.exe 24 error path C:\WINDOWS\system32\cmd.exe 25 error errno ENOENT 26 error react-complete-guide@0.1.0 start: node scripts/start.js 26 error spawn C:\WINDOWS\system32\cmd.exe ENOENT 27 error Failed at the react-complete-guide@0.1.0 start script. 27 error This is probably not a problem with npm. There is likely additional logging output above. 28 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8

github_iconTop GitHub Comments

8reactions
oseisaaccommented, Feb 22, 2021

Thank you every one for trying to help me, i found the error , it was with my cmd.exe file,it was missing in my system ,that’s why my dependencies was not able to update.

How did you fix the issue, Im experiencing the same thing ?

0reactions
lveillardcommented, Mar 16, 2021

@Sukhvir2104 same for me, I have the same issue, all my commands get “/d /s /c” in the begining and they obviously don’t work.

If only everyone telling “is ok I solved it” just wrote also what they do to solve it… haha hope you can tell us 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

javascript - npm start error with create-react-app
Go to your C:\Users\<USER>\AppData\Roaming · Delete npm and npm-cache directories... · Go back to your application directory and remove ...
Read more >
React npm start not working? - JavaScript
Ive tried to find solutions online but have not gotten a working solution yet. Seems that others are having this problem as well....
Read more >
After create-react-app, `npm start` not work · Issue #9320
I am also facing the same issue while executing the command "npm start". The "unset HOST" command didnt work for me. Does someone...
Read more >
npm start is not working after downloading my repo : r/reactjs
else you can add it by putting "start":"react-scripts start" under the scripts object inside your package.json . that usually fixes it.
Read more >
start-server-and-test
You can provide port number and custom test command, in that case npm start is assumed to start the server. { "scripts": {...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found