- Baixei a API indicada na aula 3 (vídeo 1) e ao rodar o comando "npm start" obtive a seguinte mensagem: npm ERR! code ENOENT npm ERR! syscall open npm ERR! path J:\Alura\Formação Vue.js\3 - Vue.js 1 - Construindo Single Pages Applications\api\package.json npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, open 'J:\Alura\Formação Vue.js\3 - Vue.js 1 - Construindo Single Pages Applications\api\package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Jujuba\AppData\Roaming\npm-cache_logs\2021-03-27T02_46_23_898Z-debug.log
- Pesquisei a respeito na internet e vi que faltava o arquivo package.json... Tentei então mover a pasta da API para dentro da pasta do projeto AluraPic, e rodei novamente o comando "npm start" e obtive a seguinte mensagem: npm ERR! missing script: start
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Jujuba\AppData\Roaming\npm-cache_logs\2021-03-27T02_32_39_376Z-debug.log
- Abri o arquivo que contém a seguinte informação:
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.14.11 3 info using node@v14.16.0 4 verbose stack Error: missing script: start 4 verbose stack at run (C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:155:19) 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\lib\run-script.js:63:5 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:116:5 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:436:5 4 verbose stack at checkBinReferences_ (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:391:45) 4 verbose stack at final (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:434:3) 4 verbose stack at then (C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:161:5) 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\read-package-json\read-json.js:281:12 4 verbose stack at C:\Program Files\nodejs\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:123:16 4 verbose stack at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:63:3) 5 verbose cwd J:\Alura\Formação Vue.js\3 - Vue.js 1 - Construindo Single Pages Applications\alurapic\api 6 verbose Windows_NT 10.0.18363 7 verbose argv "C:\Program Files\nodejs\node.exe" "C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "start" 8 verbose node v14.16.0 9 verbose npm v6.14.11 10 error missing script: start 11 verbose exit [ 1, true ]
Podem me ajudar a resolver para prosseguir com o projeto?