In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
How to install nodejs in linux system? In view of this problem, this article introduces the corresponding analysis and answers in detail, hoping to help more partners who want to solve this problem to find a more simple and feasible way.
What is Linux system Linux is a free-to-use and free-spread UNIX-like operating system, is a POSIX-based multi-user, multi-task, multi-threaded and multi-CPU operating system, using Linux can run major Unix tools, applications and network protocols.
Recommended method:
/ / download nvm$ git clone https://github.com/cnpm/nvm.git// to install the version you need, and then you can use node in any directory as well as npm the $nvm install 7.4.0 / newly opened window if it cannot be achieved. Then you also need the following two steps / / 1 to configure the terminal to be automatically executed when it starts, and add the following command in ~ / .bashrc, ~ / .bash_profile, ~ / .profile, or ~ / .zshrc file: (modify the profile to be valid) source ~ / git/nvm/nvm.shsource ~ / .profile / / set the default running node version $nvm alias default 0.12 nvm ls / verify that nvm ls is installed successfully if default is 7.4.0 After that, any opening can realize the use of node default-> 7.4.0 (- > v7.4.0).
Other methods:
1. Compilation and decompression + configuration variables
Wget https://npm.taobao.org/mirrors/node/latest-v4.x/node-v4.4.7-linux-x64.tar.gztar-zxvf node-v4.4.7-linux-x64.tar.gzexport PATH=$PATH:/opt/node-v4.4.7-linux-x64/bin
two。 Source package compilation + installation + configuration variables
3.apt-get installation
This is the answer to the question about how to install nodejs in the linux system. I hope the above content can be of some help to you. If you still have a lot of doubts to be solved, you can follow the industry information channel to learn more about it.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.