Last update at :2024-06-27,Edit by888u
Nowadays, we only use Linux VPS and servers for website building or ordinary software environments. We may not need to use the Node.js software environment. Today I met a netizen who needed to use Node.js to run a certain software in the Debian8 environment, but by default the version of apt-get was lower and a newer version was needed.
Snail is going to record in this article how to configure this netizen’s current Debian8 server environment with the latest version of Node.js. I remember installing version 5.x on CentOS some time ago, but I don’t know the latest version of Node.js. Where are you, then go to the official version to see the latest version.
First, check the current Node.js version
Official website address: http://nodejs.cn/download/
Here we can see that the latest Node.js version is v8.1.2. If you download and compile it directly, it will be a little troublesome. Let's look at the installation method through the package manager.
Second, upgrade system sources and install required software
apt-get update -yapt-get install -y build-essential curl
Third, install the latest version v8.1.2
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash –
See the above interface, and then perform the installation:
apt-get install nodejs
Fourth, check the current Node.js version
node -v
By inspection, we can see that the current Node.js is the latest v8.1.2 version. In the same way, we can replace the installation script with another version serial number to automatically install other versions.
Recommended site search: free domain name, virtual host, host domain name, permanent free vps cloud host, cheap virtual host, which is the best foreign server rental company, domain name registration price, free second-level domain name application, cheap domain name, expired domain name Query,
发表评论