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

Ubuntu Server 18.04 how to install node through nvm

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

Editor to share with you Ubuntu Server 18.04 how to install node through nvm, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Install python (node depends on python2 in many places, but Ubuntu Server 18.04 does not have Python2 installed by default)

Sudo apt install python

Nvm official warehouse: https://github.com/creationix/nvm

Installation

Curl-o-https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bashsource ~ / .bashrccommand-v nvm # will print nvm; failure if it is installed successfully

Version view

Nvm ls # View local version nvm ls-remote # View remotely available version

Install node 8.11.2

You can also install nvm install https://npm.taobao.org/mirrors/node nvm install v8.11.2 through an image.

View the version of node currently in use

~ $nvm use nodeNow using node v8.11.2 (npm v5.6.0)

Switch node version

~ $nvm use v10.14.2Now using node v10.14.2 (npm v6.4.1) above is all the content of the article "how Ubuntu Server 18.04 installs node through nvm". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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

Development

Wechat

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

12
Report