Install Different Node Version on Mac

Source: Internet
Author: User
Tags install homebrew

Whether NPM or other Front-ent Package Manager tools is all writtent by node, therefor, if we want to use it, we should I Nstall node at first.

HTTPS://nodejs.org/en/

After installing node, we'll get NPM to manage your JavaScript packages.

As we all know, NPM are a package manager for JavaScript and word ' s largest software register. Recently, I found a tool like NPM and more stronger than NPM on Mac system, which is hombrew. So maybe you'll ask what ' s the difference between NPM and homebrew

    • Difference between homebrew and NPM
       is was in Chrome:it can only add function extensions Within a single app.
  • Installation
    $ NPM Install homebrew

    For now, maybe-want to install different node-version on one operating the system, then "NVM" would help you solve This problem.

    HTTPS://github.com/creationix/nvm/blob/master/readme.md

    You can use the bellow command to check for node version or other NVM commands

    NVM--HELPUSAGE:NVM--help Show Thismessage NVM--version Print outThe installed version of NVM NVM install [-S] <version> Download and install a <version>, [-S] fromSource. Uses. NVMRCifavailable--reinstall-packages- from=<version> when installing, reinstall packages installedinch<node|iojs|node version number>--lts when installing, onlySelect  fromLTS (Long-Term support ) versions--lts=<lts name> when installing, onlySelect  fromVersions fora specific LTS line--skip-default-packages when installing, skip thedefault-packages fileifIt exists--latest-NPM After installing, attempt to upgrade to the latest working NPM on the given node Versio n NVM Uninstall<version>Uninstall a version nvm Uninstall--lts UninstallusingAutomatic LTS (Long-term support) alias ' Lts/*', if available.  NVM Uninstall--lts=<lts name> Uninstall using automatic alias for provided LTS line, if available. NVM use [--silent] <version> Modify PATH to use <version>. Uses. NVMRC if available--lts Uses automatic LTS (long-term support) alias ' lts/* ',    if available.  --lts=<lts name> Uses Automatic alias for provided LTS line, if available. NVM exec [--silent] <version> [<command>] Run <command> on <version>. Uses. NVMRC if available--lts Uses automatic LTS (long-term support) alias ' lts/* ',    if available.  --lts=<lts name> Uses Automatic alias for provided LTS line, if available. NVM run [--silent] <version> [<args>] Run ' node ' on <version> with <args> as arguments. Uses. NVMRC if available--lts Uses automatic LTS (long-term support) alias ' lts/* ', if available.  --lts=<lts name> Uses Automatic alias for provided LTS line, if available. NVM current Display currently activated version NVM LS L IST installed versions NVM LS <version> List versions matching a given <version> NV                                   M ls-remote List remote versions available for install--lts When listing, only show LTS (long-term support) versions NVM ls-remote <version> List Remote Versions available for install, matching a given <version>--lts when listing, Only show LTS (long-term support) versions--lts=<lts name> when listing, only show Versio NS for a specific LTS line NVM version <version> Resolve the given descriptionTo a single local version NVM Version-remote <version> Resolve The given description to a single Remot E version--lts when listing, only select from LTS (long-term support) versions-- Lts=<lts name> when listing, only select from versions to a specific LTS line NVM Deactivat E Undo effects of ' NVM ' on the current shell NVM alias [<pattern>] Show All aliases beginning with <pattern> NVM alias <name> <version> Set an alias named <n Ame> pointing to <version> nvm unalias <name> deletes the alias named <name>

Install Different Node Version on Mac

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.