What is NVM? How to set up NVM for dummies

Опубликовано: 29 Октябрь 2024
на канале: Codemify
9,238
150

Every JS NodeJS user runs into a problem with an incompatible node version. NVM is the best solution for it. With NVM, you can install and use any node version with a matter of seconds. Here is how you can easily install it on the Mac:
1. Run this command in terminal: curl o https://raw.githubusercontent.com/nvm... | bash
2. Run this one to find out what shell do you use: echo $SHELL
3. If you use zShell run this: vim ~/.zshrc
4. Paste this code:
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
5. Restart your terminal
You all set :)

Original Article: https://github.com/nvm-sh/nvm

Here are a few quick links to get in touch:
1. Software Quality Assurance Course - sign up for a free lesson here - http://codemify.com/course
2. Learn more info about Manual Testing and Automation Testing - https://codemify.com/blog

Useful YouTube playlists for you:
✅ More about QA Job:    • About QA Job  
✅ Our students’ reviews:    • Student Reviews  

▶️JavaScript:    • JavaScript  
▶️WDIO:    • WDIO  
▶️API TEST Automation:
   • API Test Automation  
▶️Jira:    • Jira  

Change your carrier and become an IT professional with us.
❗️Info about our courses and mentorship are here: https://codemify.com/

✔️ Our QA courses: Manual and Automation Testing can be found here — ​ https://codemify.com/courses
✔️ Registration form for the course - ​https://codemify.com/contact
✔️Our students: https://codemify.com/testimonials
✔️FAQ of QA automation: https://codemify.com/faq
✔️Follow us on Instagram :
  / codemify_  
✔️ Get a free consultation or sign up for a course, questions about the course -
email - [email protected]
✔️ Telegram: https://t.me/codemifyschool