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

Summary of installing nodejs in centos

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

Nodejs's rookie tutorial website http://www.runoob.com/nodejs/nodejs-install-setup.html

The version of nodejs installed by following the steps in the rookie tutorial is node-v0.10.24.tar.gz.

After decompressing and compiling, use node-v to check that the version number cannot be displayed, indicating that the configuration failed.

But go to the installation directory / usr/local/node/0.10.24/bin and use. / node-v to view the version number.

Actually, it's not the installation failure, it's just that the environment variables are not configured.

Configure environment variables:

Cd ~

Vi .bash _ profile

PATH=$PATH:$HOME/bin:/usr/local/node/0.10.24/bin/

You can successfully use the command node-v

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

Internet Technology

Wechat

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

12
Report