Ir al contenido

Installation Documentation: OWASP Juice Shop

Environment: Ubuntu Server Technology: Node.js + Express + Angular

0views

Environment: Ubuntu Server Technology: Node.js + Express + Angular

OWASP Juice Shop requires a modern version of Node.js (v18 or higher). We will install version 22.

Ventana de terminal
sudo apt update
curl -fsSL [https://deb.nodesource.com/setup_22.x](https://deb.nodesource.com/setup_22.x) | sudo -E bash -
sudo apt install -y nodejs
# Verificar versión
node -v
# Debe ser v20+
Ventana de terminal
cd /var/www/html
sudo git clone [https://github.com/juice-shop/juice-shop.git](https://github.com/juice-shop/juice-shop.git)
cd juice-shop

This step is critical. If it fails, the server will not start (Error CONNECTION_REFUSED). We must execute npm install with write permissions to generate the build folder.

Ventana de terminal
# 1. Asignar propiedad a tu usuario actual para poder compilar
sudo chown -R $USER:$USER /var/www/html/juice-shop
# 2. Instalar dependencias y compilar la aplicación
npm install
# 3. Devolver la propiedad al usuario web (seguridad)
sudo chown -R www-data:www-data /var/www/html/juice-shop

OWASP Juice Shop is not a system service (like Apache); it is a Node.js process that we must keep active in the terminal.

Ventana de terminal
cd /var/www/html/juice-shop
sudo -u www-data npm start

We will wait until we see the message: info: Server listening on port 3000

Web Access: http://TU_IP:3000

In the terminal where it is running, we will press: Ctrl + C