viernes, 20 de mayo de 2016

Ember: Instalar Node.js/NPM sin Sudo

Requerimientos para instalar Ember:
  node -v
  # Tienes dos opciones para instalar NVM
  curl https://raw.githubusercontent.com/creationix/nvm/v0.12.1/install.sh | bash
  # wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.12.1/install.sh | bash
  source ~/.profile
  # Si no te funcionan los siguientes comandos, abre un terminal nuevo
  nvm ls-remote       # lista de versiones
  nvm install v4.4.4  # intalacion
  nvm current         # version Node NVM activado
  node -v             # version Node que esta siendo usada
  npm -v              # version NPM que esta siendo usada
  which node          # donde esta instalado Node

  # Ya podemos instalar los paquetes
  npm -g install ember-cli     # Install Ember-cli
  npm -g install bower         # Install bower package manager
  npm -g install phantomjs     # Install phantomJS (integration testing)

  ember new proyecto           # Creamos un nevo proyecto ember
  cd proyecto
  ember server                 # arrancamos el servidor

  # Si clonaramos un proyecto de git
  git clone git@github.com:...

  cd proyecto
  npm install                  # instalamos dependencias
  bower install
  ember server

  # para usar una version concreta de Node
  nvm use v4.4.4

No hay comentarios:

Publicar un comentario