Update Node.js installation

The previous way of installing Node.js does not seem to be picked up correctly. When running `rails server` it was raising an exception.
This commit is contained in:
voodoorai2000
2019-04-11 12:10:04 +02:00
parent 57c8d6a218
commit e5924bc98f
2 changed files with 4 additions and 12 deletions

View File

@@ -61,18 +61,14 @@ gem install bundler
## Node.js ## Node.js
To compile the assets, you'll need a JavaScript runtime. Node.js is the preferred option. As with Ruby, we don't recommend installing Node from your distro's repositories. To compile the assets, you'll need a JavaScript runtime. Node.js is the preferred option.
To install it, you can use [n](https://github.com/tj/n)
Run the following command on your terminal: Run the following command on your terminal:
```bash ```bash
wget -L https://git.io/n-install | bash -s -- -y lts sudo apt install nodejs
``` ```
It will install the latest LTS (Long Term Support) Node version on your `$HOME` folder automatically (using [n-install](https://github.com/mklement0/n-install))
## PostgreSQL ## PostgreSQL
Install postgresql and its development dependencies with: Install postgresql and its development dependencies with:

View File

@@ -61,18 +61,14 @@ gem install bundler
## Node.js ## Node.js
Para compilar los archivos estáticos (JS, CSS, imágenes, etc.), es necesario un _runtime_ de JavaScript. Node.js es la opción recomendada. Al igual que como ocurre con Ruby, no es recomendable instalar Node directamente de los repositorios de tu distribución Linux. Para compilar los archivos estáticos (JS, CSS, imágenes, etc.), es necesario un _runtime_ de JavaScript. Node.js es la opción recomendada.
Para instalar Node, puedes usar [n](https://github.com/tj/n)
Ejecuta en tu terminal: Ejecuta en tu terminal:
```bash ```bash
wget -L https://git.io/n-install | bash -s -- -y lts sudo apt install nodejs
``` ```
Y este instalará automáticamente la versión LTS (_Long Term Support_, inglés para "Soporte a largo plazo") más reciente de Node en tu directorio `$HOME` (usando [n-install](https://github.com/mklement0/n-install))
## PostgreSQL ## PostgreSQL
Instala postgresql y sus dependencias de desarrollo con: Instala postgresql y sus dependencias de desarrollo con: