2
respostas

Erro na instalação da API

Quando eu faço a instalação da API e insiro npm start ele me mostra esses erros:

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! curso-react-api@1.0.0 start: node server.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the curso-react-api@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\fabio_k2kpy02\AppData\Roaming\npm-cache_logs\2020-03-19T22_16_53_920Z-debug.log

Podem me ajudar por gentileza?

2 respostas

Boa noite, Fabio! Como vai?

Poderia postar aqui o log completo do erro? O trecho que vc mandou não tem todas as informações necessárias pra te ajudar.

Qualquer coisa é só falar!

Grande abraço e bons estudos, meu aluno!

Olá Gabriel

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:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js', 1 verbose cli 'start' 1 verbose cli ] 2 info using npm@6.13.4 3 info using node@v12.16.1 4 verbose run-script [ 'prestart', 'start', 'poststart' ] 5 info lifecycle curso-react-api@1.0.0prestart: curso-react-api@1.0.0 6 info lifecycle curso-react-api@1.0.0start: curso-react-api@1.0.0 7 verbose lifecycle curso-react-api@1.0.0start: unsafe-perm in lifecycle true 8 verbose lifecycle curso-react-api@1.0.0start: PATH: C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\fabio_k2kpy02\OneDrive\Documents\GitHub\alura\React\curso-react-api\node_modules.bin;C:\Python27;C:\Python27\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Windows\System32\OpenSSH;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\nodejs;C:\Ruby26-x64\bin;C:\Users\fabio_k2kpy02\AppData\Local\Microsoft\WindowsApps;C:\Users\fabio_k2kpy02\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\fabio_k2kpy02\AppData\Local\GitHubDesktop\bin;C:\Users\fabio_k2kpy02\AppData\Roaming\npm 9 verbose lifecycle curso-react-api@1.0.0start: CWD: C:\Users\fabio_k2kpy02\OneDrive\Documents\GitHub\alura\React\curso-react-api 10 silly lifecycle curso-react-api@1.0.0start: Args: [ '/d /s /c', 'node server.js' ] 11 silly lifecycle curso-react-api@1.0.0start: Returned: code: 1 signal: null 12 info lifecycle curso-react-api@1.0.0start: Failed to exec start script 13 verbose stack Error: curso-react-api@1.0.0 start: node server.js 13 verbose stack Exit status 1 13 verbose stack at EventEmitter. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16) 13 verbose stack at EventEmitter.emit (events.js:311:20) 13 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14) 13 verbose stack at ChildProcess.emit (events.js:311:20) 13 verbose stack at maybeClose (internal/child_process.js:1021:16) 13 verbose stack at Process.ChildProcess.handle.onexit (internal/childprocess.js:286:5) 14 verbose pkgid curso-react-api@1.0.0 15 verbose cwd C:\Users\fabio_k2kpy02\OneDrive\Documents\GitHub\alura\React\curso-react-api 16 verbose Windows_NT 10.0.18363 17 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" 18 verbose node v12.16.1 19 verbose npm v6.13.4 20 error code ELIFECYCLE 21 error errno 1 22 error curso-react-api@1.0.0 start: node server.js 22 error Exit status 1 23 error Failed at the curso-react-api@1.0.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 ]

Aqui esta o debug log completo