

I also installed some extra dependencies I need so you can clean up this code for your needs. Install Nodejs and NPM on Raspberry Pi Step-by-Step Step 1: Update and Upgrade Your System Step 2: Check the Node Version You Need to Download Step 3. RUN apt-get update & apt-get upgrade -y & apt-get autoremove -y An alternative way to install Node.js via the package manager.

RUN apt-get install curl htop git zip nano ncdu build-essential chrpath libssl-dev libxft-dev pkg-config glib2.0-dev libexpat1-dev gobject-introspection python-gi-dev apt-transport-https libgirepository1.0-dev libtiff5-dev libjpeg-turbo8-dev libgsf-1-dev fail2ban nginx -y Should I include the Java package from Oracle.

RUN echo "NODE_ENV=development" > /etc/environment RUN echo "LANG=en_US.UTF-8" > /etc/environment How to install the latest Node.js on Linux sudo apt update sudo apt install nodejs -y sudo apt install npm -y nodejs -version npm -version sudo apt. RUN echo "LC_ALL=en_US.UTF-8" > /etc/environment To add a package as a dependency to your project, use the yarn add command followed by the package name: yarn add packagename The command will install the package and any packages that it depends on and update the project’s package.json and yarn.lock files. Installing nodejs v8 with ubuntu 16.04 base image: FROM ubuntu:16.04
