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

Problema preparando o ambiente Ubuntu 16.04 LTS

Troquei de SO faz uns dias e agora não consigo dar continuidade ao meu curso de Angular I pois não consigo rodar o servidor localmente. Já tentei apagar o que tinha feito e começar do zero, mas continuo tendo o mesmo problema. Instalei o nodejs e dentro da pasta do projeto faço o npm install, ele instala mas quando rodo o npm start aparecem vários erros na tela. Alguém poderia me ajudar ?

4 respostas

Posta os erros ai

yovanycunha@desk:~/alura/Angular/01-alurapic/alurapic$ npm start

alurapic@1.0.0 start /home/yovanycunha/alura/Angular/01-alurapic/alurapic

node server.js

sh: 1: node: not found

npm ERR! Linux 4.8.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! alurapic@1.0.0 start: node server.js

npm ERR! spawn ENOENT

npm ERR!

npm ERR! Failed at the alurapic@1.0.0 start script 'node server.js'.

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 alurapic package,

npm ERR! not with npm itself.

npm ERR! Tell the author that this fails on your system:

npm ERR! node server.js

npm ERR! You can get information on how to open an issue for this project with:

npm ERR! npm bugs alurapic

npm ERR! Or if that isn't available, you can get their info via:

npm ERR! npm owner ls alurapic

npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

npm ERR! /home/yovanycunha/alura/Angular/01-alurapic/alurapic/npm-debug.log

solução!

No exercício de infra do curso há orientação para esse problema

https://cursos.alura.com.br/course/angularjs-mvc/task/9014

Seu binário não é node, indevidamente está como nodejs.

Valeu Flávio, a parte que falava disso tinha passado despercebida quando fiz essa parte da atividade

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