Giter Site home page Giter Site logo

node's Introduction

Node

Multiple Node JS Versions with n

‘n’ can be installed using npm simply by running the following command. Depending on your operating systems and permissions, you might require sudo in front of.

"npm install -g n"

After installing n, you can switch between different versions of NodeJS installations as follows. If you don’t have the requested version installed on your machine, n will automatically download it, install it and then will switch the version.

"n 6.9.2" "n 7.0.0" "n stable" # this will install latest stable version of node "n latest" # this will install the latest version of node

You can also list the install NodeJS versions in your machine running just n, and then you can graphically switch between the installed versions.

You can also dynamically change the NodeJS version for a particular application using n. "n use 7.0.0 .js"

If you are using Mac OS, you need to run following command. If ~/.bash_profile file is not there, you might need to create it first.

While using "n" in mac use "sudo n 10.0.0" or use "sudo n stable" / "sudo n 12.13.0" which will change the node and npm version to the mentioned version.

"source ~/.bash_profile"

node's People

Contributors

jvaranam avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.