Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

Problema ao instalar Node.js

Olá, estou com problema ao executar o node js. ja pesquisei de tudo, instalei como foi feito no curso, executei e nada... Olhei foruns e paginas na web, instalei como dito e nada... Alguém pode me dar uma luz?

root@gh0st2:/home/gh0st2/Documents/Cursos Alura/jQuery Módulo 1/Projeto: Alura T
yper/servidor# npm start

> AluraTyper@1.0.0 start /home/gh0st2/Documents/Cursos Alura/jQuery Módulo 1/Projeto: Alura Typer/servidor
> node server

sh: 1: node: not found

npm ERR! Linux 4.4.0-53-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! AluraTyper@1.0.0 start: `node server`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the AluraTyper@1.0.0 start script 'node server'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the AluraTyper package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node server
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs AluraTyper
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls AluraTyper
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /home/gh0st2/Documents/Cursos Alura/jQuery Módulo 1/Projeto: Alura Typer/servidor/npm-debug.log
root@gh0st2:/home/gh0st2/Documents/Cursos Alura/jQuery Módulo 1/Projeto: Alura T
yper/servidor# ^C
root@gh0st2:/home/gh0st2/Documents/Cursos Alura/jQuery Módulo 1/Projeto: Alura Typer/servidor#
2 respostas
solução!

Resolvido, tive que executar o

"#apt install nodejs-legacy"

Acertou miséravi!!! kk VLW, tive o mesmo problema.

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software