In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 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.
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.