Installing npm and Yarn on Your Machine
1. Install Node.js (npm comes with it)
-
Download and install Node.js from the official website:
👉 https://nodejs.org/ -
Verify installation:
node -v # Check Node.js version npm -v # Check npm version
2. Install Yarn
-
Using npm:
npm install -g yarn
-
Verify installation:
yarn -v # Check Yarn version
3. Alternative Installation Methods
-
For macOS (using Homebrew):
brew install yarn
-
For Windows (using Chocolatey):
choco install yarn
4. Upgrading Yarn
-
If Yarn is already installed and needs an update:
npm install -g yarn@latest
Let me know if you need any modifications! 🚀
No comments:
Post a Comment