Giter VIP home page Giter VIP logo

taller-nodejs's Introduction

Taller Node.js - CSHL

#Instalación

##Desde repositorios

###Debian y derivados

Script de configuración

$ curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -

Luego installar via apt-get

$ sudo apt-get install nodejs

Opcional y recomendado: Para instalar complementos nativos con npm vamos a necesitar instalar las herramientas para compilar:

$ sudo apt-get install build-essential

###Enterprise Linux (RH, CentOS) y Fedora

Script de configuración

$  curl -sL https://rpm.nodesource.com/setup | bash -

Luego instalar con yum

$ sudo yum install nodejs

Opcional y recomendado: Para instalar complementos nativos con npm vamos a necesitar instalar las herramientas para compilar:

$ sudo yum install gcc-c++ make
o bien
$ sudo yum groupinstall 'Development Tools'

Alternativas

A partir de fedora 18:

$ sudo yum install nodejs npm

Enterprise Linux (RHEL and CentOS):

Habilitar repositorios EPEL

$ sudo yum install epel-release

Luego instalar node:

$ sudo yum install nodejs npm --enablerepo=epel

###Arch Linux y derivados

$ sudo pacman -S nodejs npm

##Compilar nodejs

Si prefieres puedes compilar nodejs desde su código fuente, acá las instrucciones:

Prerrequisitos:

  • GCC >= 4.2
  • G++ >= 4.2
  • Python 2.6 ó 2.7
  • GNU Make >= 3.81
  • libexecinfo (FreeBSD and OpenBSD only)

Asumiendo que tienes instalado python (Que normalmente viene por defecto en las distros GNU/Linux), para instalar las utilidades podemos hacerlo de la siguiente manera:

Debian y derivados

$ sudo apt-get install build-essential

Enterprise Linux (RHEL and CentOS) y Fedora:

$ sudo yum groupinstall 'Development Tools'

Compilar:

# Descargar codigo fuente
$ wget http://nodejs.org/dist/v0.12.4/node-v0.12.4.tar.gz
# Descomprimir
$ tar -zxf node-v0.12.4.tar.gz && cd node-v0.12.4
#compilar
$ ./configure
$ make
$ sudo make install

##Verificar instalación

$ node -v
v0.12.4
$ npm -v
2.x.x

Hola mundo con node.js

$ echo "console.log('Hola Mundo')" > hello.js
$ node hello.js
Hola Mundo

taller-nodejs's People

Contributors

carloscarcamo avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.