• Skip to main content
  • Skip to primary sidebar

Ryan McCormick

Set Default Node Version in NVM | Ubuntu 14.04 LTS and OSX

November 29, 2015 by Ryan Leave a Comment

I have been working with Node a lot lately and one of my frustrations was getting the Node Version Manager (NVM) to recognize a default version. After some google searching, I found some answers and after some trial and error, I found a solution that works on both my desktop development machine (Ubuntu 14.04 LTS) and my Macbook Pro running OSX El Capitan.

Set Default Node Version in NVM

Step 1: Set current version. At the time of this post, node 5.1.0 is most recent stable version installed on both systems.

nvm use 5.1.0

Step 2: Set alias default.

nvm alias default 5.1.0

Step 3: Exit and reopen your terminal emulator. Test by checking current version:

nvm current

In both cases, on Ubuntu and OS X, I was able to verify that I am now using v.5.1.0 as my default version.

Please comment with questions, suggestions or improvements. Happy coding!

Filed Under: Javascript, Node Tagged With: default version, node, nvm, osx, Ubuntu

Reader Interactions

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar

Recent Posts

  • Force Quit Kill all Chrome Windows MacOS
  • SOLVED: Angular 6 CLI Karma Stuck in Single Run | Karma Stops Running
  • How to Manually Install Java 8 on Ubuntu 18.04 LTS
  • Remove VirtualBox from Ubuntu 16.04 Xenial
  • Clear all Node Modules Folders Recursively Mac/Linux

Recent Comments

  1. KKV on Webstorm adding spaces between imports and braces | JavaScript and TypeScript
  2. jusopi on Clear all Node Modules Folders Recursively Mac/Linux
  3. Qaisar Irfan on Clear all Node Modules Folders Recursively Mac/Linux
  4. mustafa on Remove VirtualBox from Ubuntu 16.04 Xenial
  5. Pourya on How to Manually Install Java 8 on Ubuntu 18.04 LTS

Copyright © 2025 · Magazine Pro on Genesis Framework · WordPress · Log in