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

How to install nodejs in apt

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

Share

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

This article introduces the knowledge of "how to install nodejs in apt". In the operation of actual cases, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

Apt installation nodejs method: 1, open the terminal window; 2, through the "sudo apt-get update sudo apt-get install nodejs" command for installation.

This article operating environment: Ubuntu 12.10 system, nodejs v5.10.1 version, Dell G3 computer.

How does apt install nodejs?

Apt-get installation:

This method is very simple, directly two commands.

Sudo apt-get updatesudo apt-get install nodejs

If you install it this way, you will find that the version of nodejs is very low.

Read other articles on the Internet and install other packages

# apt-get update # apt-get install-y python-software-properties software-properties-common # add-apt-repository ppa:chris-lea/node.js # apt-get update # apt-get install nodejs

However, I also said that it is applicable to the latest versions of Ubuntu, Ubuntu 12.04 LTS, Ubuntu 12.10, Ubuntu 13.04 and so on.

After a try, it is obvious that Ubuntu 16.04 is no longer applicable.

Attached:

Install node using nvm

Install nvm

Wget-qO- https://raw.githubusercontent.com/creationix/nvm/v0.33.6/install.sh | bash

The use of nvm

The commonly used nvm instructions are these

Nvm ls: lists the locally installed versions of node

Nvm ls-remote: list all node versions

Nvm install-- lts: install the lts version

Nvm install: installs the specified version

Nvm use: using the specified version

Enter more instructions directly into nvm or nvm help for viewing

This is the end of "how apt installs nodejs". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!

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