Install NPM environment under Mac

Source: Internet
Author: User

Manage with NVM:

1, open the HTTPS://GITHUB.COM/CREATIONIX/NVM, found in the README.MD:

Installationinstall Script

To install or update NVM, you can use the install script using CURL:

curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | Bash

or Wget:

wget-qo-https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | Bash


2. Copy the red command into the cmd window to execute

3, after the installation is completed, the CMD window will eventually output:

= = Close and reopen your terminal to start using NVM or run the following to use it now:


Export nvm_dir= "$HOME/.NVM"

[-S "$NVM _dir/nvm.sh"] && \. "$NVM _dir/nvm.sh" # this loads NVM

[-S "$NVM _dir/bash_completion"] && \. "$NVM _dir/bash_completion" # this loads NVM bash_completion


Copy the Red command to the command line to perform the environment adaptation

4, NVM Complete installation. Perform

NVM Install 0.12.4

The version number can be modified according to your needs.

This article is from the "Echo and you take off" blog, please be sure to keep this source http://5052416.blog.51cto.com/5042416/1979865

Install NPM environment under 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.