In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-11-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces "how to build the Node.js environment" in detail, the content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to build the Node.js environment" can help you solve your doubts.
Install the Node.js environment
Node.js is a JavaScript running on the server side and is a platform based on Chrome JavaScript V8 engine.
Download and install Node.js
Download the latest stable version v6.10.3 locally
Wget https://nodejs.org/dist/v6.10.3/node-v6.10.3-linux-x64.tar.xz
When the download is complete, unzip it
TarxvJfnode-v6.10.3-linux-x64.tar.xz
Move the extracted Node.js directory to the / usr/local directory
Mvnode-v6.10.3-linux-x64/usr/local/node-v6
Configure the node soft link to the / bin directory
Ln-s/usr/local/node-v6/bin/node/bin/node configuration and npm configuration using npm
Npm is a package management and distribution tool for Node.js. It makes it easier for Node.js developers to share code and share code snippets
Npm is already included in the compressed package for downloading node. We just need to link its software to the bin directory.
Ln-s/usr/local/node-v6/bin/npm/bin/npm configuration environment variables
Adding the / usr/local/node-v6/bin directory to the $PATH environment variable makes it easy to use third-party tools installed globally through npm
Echo'exportPATH=/usr/local/node-v6/bin:$PATH' > > / etc/profile
Effective environment variable
Source/etc/profile uses npm
Install the process management module forever through npm
Npminstallforever-g has read this article, "how to build a Node.js environment" article has been introduced, want to master the knowledge of this article still need to practice and use to understand, if you want to know more related articles, 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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.