Olá,
Estou começando o curso hoje, 20-fev-20 e fui instalar o node, mas a versão que instalou é a 13.6.0. Daí, ao digitar npm start, deu este erro:
$ npm start npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /home/alura/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/home/alura/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! /home/.npm/_logs/2020-02-20T12_36_35_838Z-debug.log
Abrindo o LOG tem-se: $ cat ~/.npm/_logs/2020-02-20T12_36_35_838Z-debug.log 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ] 2 info using npm@6.13.4 3 info using node@v13.6.0 4 verbose stack Error: ENOENT: no such file or directory, open '/home/64115399520/alura/package.json' 5 verbose cwd /home/64115399520/alura 6 verbose Linux 4.15.0-74-generic 7 verbose argv "/usr/bin/node" "/usr/bin/npm" "start" 8 verbose node v13.6.0 9 verbose npm v6.13.4 10 error code ENOENT 11 error syscall open 12 error path /home/alura/package.json 13 error errno -2 14 error enoent ENOENT: no such file or directory, open '/home/64115399520/alura/package.json' 15 error enoent This is related to npm not being able to find a file. 16 verbose exit [ -2, true ]
E ao digitar nodejs server deu outro erro $ nodejs server internal/modules/cjs/loader.js:976 throw err; ^
Error: Cannot find module '/home/alura/server' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:973:15) at Function.Module._load (internal/modules/cjs/loader.js:855:27) at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12) at internal/main/run_main_module.js:17:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
Ao criar o link, também deu erro:
$ sudo ln -s /usr/bin/nodejs /usr/bin/node Senha do Diretório Corporativo: ln: falha ao criar link simbólico '/usr/bin/node': Arquivo existe
Poderiam me ajudar?
Obrigado Luís - Salvador Bahia Ubuntu 18.04 Node 13.6