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

Boa noite, não estou conseguindo instalar e iniciar, obs uso ambiente ubuntu 14.4

cassio@cassio-S400CA:~/Documentos/Estudos/Angular 2 - pt1/alurapic/client$ npm install
npm WARN package.json client@1.0.0 No description
npm WARN package.json client@1.0.0 No repository field.
npm WARN package.json client@1.0.0 No README data
npm http GET https://registry.npmjs.org/angular/http/2.0.0
npm http GET https://registry.npmjs.org/angular/router/3.0.0
npm http GET https://registry.npmjs.org/angular/platform-browser/2.0.0
npm http GET https://registry.npmjs.org/angular/platform-browser-dynamic/2.0.0
npm http GET https://registry.npmjs.org/angular/upgrade/2.0.0
npm http GET https://registry.npmjs.org/angular/core/2.0.0
npm http GET https://registry.npmjs.org/angular/common/2.0.0
npm http GET https://registry.npmjs.org/angular/compiler/2.0.0
npm http GET https://registry.npmjs.org/angular/forms/2.0.0
npm http GET https://registry.npmjs.org/reflect-metadata/0.1.3
npm http GET https://registry.npmjs.org/bootstrap/3.3.6
npm http GET https://registry.npmjs.org/typescript/2.0.2
npm http GET https://registry.npmjs.org/typings/1.3.2
npm http 404 https://registry.npmjs.org/angular/platform-browser-dynamic/2.0.0
npm ERR! 404 'angular' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 4.4.0-96-generic
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/cassio/Documentos/Estudos/Angular 2 - pt1/alurapic/client
npm ERR! node -v v0.10.25
npm ERR! npm -v 1.3.10
npm ERR! code E404
npm http 404 https://registry.npmjs.org/angular/core/2.0.0
npm http 404 https://registry.npmjs.org/angular/router/3.0.0
npm http 404 https://registry.npmjs.org/angular/upgrade/2.0.0
npm http 404 https://registry.npmjs.org/angular/platform-browser/2.0.0
npm http 404 https://registry.npmjs.org/angular/http/2.0.0
npm http 304 https://registry.npmjs.org/reflect-metadata/0.1.3
npm http 304 https://registry.npmjs.org/bootstrap/3.3.6
npm http 304 https://registry.npmjs.org/typescript/2.0.2
npm http 304 https://registry.npmjs.org/typings/1.3.2
npm WARN deprecated typings@1.3.2: Typings is deprecated in favor of NPM @types -- see README for more information
npm http 404 https://registry.npmjs.org/angular/common/2.0.0
npm http 404 https://registry.npmjs.org/angular/compiler/2.0.0
npm http 404 https://registry.npmjs.org/angular/forms/2.0.0
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/cassio/Documentos/Estudos/Angular 2 - pt1/alurapic/client/npm-debug.log
npm ERR! not ok code 0

cassio@cassio-S400CA:~/Documentos/Estudos/Angular 2 - pt1/alurapic/client$ npm start

> client@1.0.0 start /home/cassio/Documentos/Estudos/Angular 2 - pt1/alurapic/client
> npm run tsc:w


> client@1.0.0 tsc:w /home/cassio/Documentos/Estudos/Angular 2 - pt1/alurapic/client
> tsc -w

sh: 1: tsc: not found
npm ERR! weird error 127
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0
npm ERR! weird error 1
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian

npm ERR! not ok code 0
cassio@cassio-S400CA:~/Documentos/Estudos/Angular 2 - pt1/alurapic/client$
2 respostas

Oi Cassio, você chegou a ler o aviso sobre a instação do Node.js em algumas distribuições linux?

Dá uma conferida aqui na parte que esta escrito "atenção".

https://cursos.alura.com.br/course/angular2-parte1/task/14391

Em sua, sua distro indevidamente chama o binário do Node.js de nodejs e não node. Tem que corrigir isso. Como uso Mac, não entendo porque as distros do Linux, algumas, fazem essa barberagem.

Dá uma conferida lá.

obs: só uma dica. Em desenvolvimento não usamos diretórios com espaços. Isso causa problemas em algumas ferramentas de desenvolvimento e linguagens.

solução!

esse link irá ajudar quem utiliza Ubuntu 14.4 https://www.digitalocean.com/community/tutorials/como-instalar-o-node-js-em-um-servidor-ubuntu-14-04-pt