Set a Default Node Model with nvm


As I’ve proven you up to now, nvm a wonderful utility for switching between Node.js variations. Whether or not your host machine or CI, constructing and testing your apps on completely different Node variations is a necessity. I’ve just lately discovered a couple of nvm instructions that I discovered actually helpful throughout native improvement.

To set a default node model in your machine, with out touching your system’s set up, you should utilize:

nvm alias default [version_here]

To mechanically change to the node model that most accurately fits a undertaking’s bundle.json file, merely sort:

nvm use

I’ve at all times liked nvm however I nonetheless catch myself manually altering variations after I might automate that course of with a couple of instructions!

  • How I Stopped WordPress Comment Spam

    I really like virtually each a part of being a tech blogger:  studying, preaching, bantering, researching.  The one half about running a blog that I completely detest:  coping with SPAM feedback.  For the previous two years, my weblog has registered 8,000+ SPAM feedback per day.  PER DAY.  Bloating my database…

  • CSS Filters

    CSS filter assist just lately landed inside WebKit nightlies. CSS filters present a technique for modifying the rendering of a primary DOM ingredient, picture, or video. CSS filters permit for blurring, warping, and modifying the colour depth of parts. Let’s have…

  • Multiple File Upload Input

    Most of the time, I discover myself desirous to add a couple of file at a time.  Having to make use of a number of “file” INPUT parts is annoying, sluggish, and inefficient.  And if I hate them, I am unable to think about how irritated my customers can be.  Fortunately Safari, Chrome…

  • 9 Mind-Blowing Canvas Demos

    The <canvas> ingredient has been a revelation for the visible consultants amongst our ranks.  Canvas offers the means for unimaginable and environment friendly animations with the added bonus of no Flash; these builders can flash their superior JavaScript abilities as a substitute.  Listed here are 9 unbelievable canvas demos that…


Leave a Comment