Node.js Install करना
आप Node.js एक बार download करते हैं, और यह node command और npm दोनों install करता है।
In this page:
Node.js Install करना
nodejs.org से LTS installer download करें, या nvm जैसा एक version manager इस्तेमाल करें ताकि आप project के हिसाब से versions switch कर सकें। apt, brew, और winget जैसे Package managers भी काम करते हैं। Install करने के बाद, node --version और npm --version से verify करें।
Note:
production projects के लिए LTS (long-term support) release इस्तेमाल करें।
उदाहरण: Installing Node.js
$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
$ nvm install --lts
$ node --version
v20.11.1
$ npm --version
10.2.4
⚠️ Run this in your own terminal or Node.js environment.
Related Topics
{# common_mistakes/chapter_summary/browser_support: on Hindi pages the
view already swaps in the hi_ translation fields (or blanks these
out if untranslated), so this renders correctly for both languages
without a lang_code check here. #}
आम गलतियां
- production के लिए एक odd-numbered non-LTS release install करना
- sudo npm से install करना और permission problems बनाना
- terminal restart न करना ताकि PATH update न हो
चैप्टर सारांश
- LTS release install करें
- nvm कई versions manage करता है
- node --version install verify करता है
- npm bundled आता है
🔒
Chapter Quiz — Complete all 7 topics to unlock
0/7 topics done
Complete these topics first: