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 build Node Environment in Linux

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article is about how to build a Node environment in Linux. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Node.js is not a JS file or a JS framework, but a Server side JavaScript runtime (a JS runtime on the server), and we can run JS code in the Node environment.

Node can only run ECMScript can not run BOM and DOM, it uses the JS engine is chrome's V8 engine, * * it is a running environment. * * it is a light kernel thing, it has no function itself, and all the functions are provided by the feature pack.

1 try yum install node

Cannot install. Query node official website: centos server can only be installed with source code.

2 download the file using the wget command

Right-click to copy the link and paste it after the wget command.

Wget https://nodejs.org/dist/v8.11.3/node-v8.11.3-linux-x64.tar.xz3 decompresses tar-xf node-v8.11.3-linux-x64.tar.xz

The files are still in this folder at this time

4 add the node path to the environment variable

Vim / etc/profile add:

Export NODE_HOME= `/ root/zuo/env/node-v8.11.3-linux- x64` {enter the path of node after decompression} export PATH=$PATH:$NODE_HOME/bin5 refresh permission source / etc/profile thank you for reading! This is the end of this article on "how to build a Node environment in Linux". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

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