Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Install npm environment under mac

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

Manage with nvm:

1. Open https://github.com/creationix/nvm and find the following in 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 to the cmd window to execute.

3. After the installation is completed, the cmd window will 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 in turn to the command line for execution to complete the environment adaptation

4. Nvm completes the installation. Execution

Nvm install 0.12.4

The version number can be modified according to your own needs.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report