Last active
July 12, 2016 14:38
-
-
Save l4sh/1e3c4e9f89e280974cf4 to your computer and use it in GitHub Desktop.
Instalar Node.js y NPM desde fuente
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Instalar dependencias (adapta a tu distro) | |
# Para Fedora: | |
# gcc-c++ make glibc-devel openssl openssl-devel | |
# | |
# En Debian solo es necesario instalar | |
# build-essentiak | |
# Crea un directorio de trabajo temporal | |
mkdir nodebuild | |
cd nodebuild | |
# Descarga node.js | |
wget http://nodejs.org/dist/node-latest.tar.gz | |
# Descomprime | |
tar -xvpzf node-latest.tar.gz | |
# Compila | |
cd node-v* | |
make | |
sudo make install | |
# Instalar npm | |
wget http://npmjs.org/install.sh | |
sudo bash install.sh | |
# En Fedora da error al intentar ejecutar npm usando sudo debido a que /usr/local | |
# no se encuentra en el path de sudoers. Es necesario editar /etc/sudoers y agregar | |
# /usr/local/bin y /usr/local/sbin a la linea "Defaults secure_path..." | |
# e.g. | |
# Defaults secure_path = /sbin:/bin:/usr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment