Впервые я не могу запустить npm start
после create-react-app
на windows. Это следующее сообщение об ошибке:
Starting the development server...
events.js:200
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:81:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:270:12)
at onErrorNT (internal/child_process.js:456:16)
at processTicksAndRejections (internal/process/task_queues.js:81:21) {
errno: 'ENOENT',
code: 'ENOENT',
syscall: 'spawn cmd',
path: 'cmd',
spawnargs: [ '/c', 'start', '""', '/b', 'http://localhost:3000/' ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! suppp@0.1.0 start: `react-scripts start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the suppp@0.1.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Я удалил node_modules папка и package-lock. json и затем npm установить . Но это не работает вообще.
обновление: журнал отладки, размещенный ниже ...
это журнал отладки ....
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\\asd\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start'
1 verbose cli ]
2 info using npm@6.13.7
3 info using node@v12.14.1
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info lifecycle suppp@0.1.0~prestart: suppp@0.1.0
6 info lifecycle suppp@0.1.0~start: suppp@0.1.0
7 verbose lifecycle suppp@0.1.0~start: unsafe-perm in lifecycle true
8 verbose lifecycle suppp@0.1.0~start: PATH: C:\Users\asd\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\asd\Documents\projects\suppp\node_modules\.bin;C:\Python27\;C:\Python27\Scripts;C:\>sqlite; C:\python3\Scripts;C:\Program Files\nodejs\;C:\ProgramData\chocolatey\bin;C:\python3\Scripts\;C:\python3\;C:\Users\asd\AppData\Local\Programs\Python\Python37-32\Scripts\;C:\Users\asd\AppData\Local\Programs\Python\Python37-32\;C:\Ruby24-x64\bin;C:\Users\asd\AppData\Local\Microsoft\WindowsApps;C:\Users\asd\AppData\Local\atom\bin;C:\Users\asd\AppData\Local\GitHubDesktop\bin;C:\Users\asd\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\asd\AppData\Local\Microsoft\WindowsApps;C:\Users\asd\AppData\Roaming\npm
9 verbose lifecycle suppp@0.1.0~start: CWD: C:\Users\asd\Documents\projects\suppp
10 silly lifecycle suppp@0.1.0~start: Args: [ '/d /s /c', 'react-scripts start' ]
11 silly lifecycle suppp@0.1.0~start: Returned: code: 1 signal: null
12 info lifecycle suppp@0.1.0~start: Failed to exec start script
13 verbose stack Error: suppp@0.1.0 start: `react-scripts start`
13 verbose stack Exit status 1
13 verbose stack at EventEmitter.<anonymous> (C:\Users\asd\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
13 verbose stack at EventEmitter.emit (events.js:223:5)
13 verbose stack at ChildProcess.<anonymous> (C:\Users\asd\AppData\Roaming\npm\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:223:5)
13 verbose stack at maybeClose (internal/child_process.js:1021:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
14 verbose pkgid suppp@0.1.0
15 verbose cwd C:\Users\asd\Documents\projects\suppp
16 verbose Windows_NT 10.0.18362
17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\asd\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
18 verbose node v12.14.1
19 verbose npm v6.13.7
20 error code ELIFECYCLE
21 error errno 1
22 error suppp@0.1.0 start: `react-scripts start`
22 error Exit status 1
23 error Failed at the suppp@0.1.0 start script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]
Есть идеи?