From 2eff1386d1a859be82969c8f28ca8e23e4e0e361 Mon Sep 17 00:00:00 2001 From: stuffbymax <96355058+stuffbymax@users.noreply.github.com> Date: Tue, 3 Feb 2026 21:42:48 +0000 Subject: [PATCH] Create installation guide for Node.js and npm Added comprehensive installation guide for Node.js and npm across various Linux distributions. --- install.md | 129 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 129 insertions(+) create mode 100644 install.md diff --git a/install.md b/install.md new file mode 100644 index 000000000..fe9a2388b --- /dev/null +++ b/install.md @@ -0,0 +1,129 @@ + +# INSTALL.md + +## Node.js & npm Installation Guide + + +## 1. Arch Linux / Manjaro + +```bash +# Update package database +sudo pacman -Syu + +# Install Node.js and npm +sudo pacman -S nodejs npm + +# Verify installation +node -v +npm -v +```` + +--- + +## 2. Debian / Ubuntu + +```bash +# Update package database and install curl +sudo apt update +sudo apt install -y curl + +# Install nvm (Node Version Manager) +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash + +# Load nvm +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + +# Install latest Node.js and npm +nvm install node + +# Verify installation +node -v +npm -v +``` + +--- + +## 3. CentOS / RHEL + +```bash +# Install curl if missing +sudo yum install -y curl + +# Install nvm +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash + +# Load nvm +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + +# Install latest Node.js and npm +nvm install node + +# Verify installation +node -v +npm -v +``` + +--- + +## 4. Fedora + +```bash +# Update system +sudo dnf update -y + +# Install Node.js and npm from modules +sudo dnf module list nodejs # Check available versions +sudo dnf module enable nodejs:18 # Example: enable Node 18 LTS +sudo dnf install -y nodejs npm + +# Verify installation +node -v +npm -v +``` + +--- + +## 5. openSUSE + +```bash +# Refresh repositories +sudo zypper refresh + +# Install Node.js and npm +sudo zypper install -y nodejs npm + +# Verify installation +node -v +npm -v +``` + +--- + +## 6. Using nvm (Optional, Recommended) + +`nvm` allows installing multiple Node.js versions and switching between them easily: + +```bash +# Install nvm +curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash + +# Load nvm +export NVM_DIR="$HOME/.nvm" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" + +# Install latest Node.js and npm +nvm install node + +# Or install latest LTS version +nvm install --lts + +# Switch Node versions +nvm use node + +# Verify installation +node -v +npm -v +``` +