Install OpenAI Codex and Google Gemini AI coding agent
Installing npm on Ubuntu To install npm (the Node.js package manager) on Ubuntu, follow one of the clean, up-to-date methods below. Option 1: Install from NodeSource (Recommended) This gives you the latest stable Node.js and npm.
|
1 2 3 4 5 6 7 8 9 10 11 12 13 |
# Update your system sudo apt update # Install curl if missing sudo apt install -y curl # Add the NodeSource setup script for the current LTS (e.g. Node 20) curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - # Install Node.js (includes npm) sudo apt install -y nodejs |
Verify installation:
|
1 2 3 4 |
node -v npm -v |
Option 2: Install via Ubuntu’s Default Repositories (Older Version) This is simpler but often outdated: […]
Install OpenAI Codex and Google Gemini AI coding agent Read More »