Node.js
Node.js is an open source JavaScript runtime environment on Chrome V8, allowing you to easily develop fast and extensible web applications. It utilizes an event-driven non-blocking I/O model, making it lightweight, efficient, and well-suited for data-intensive real-time applications running across shared devices
Install
The easiest way to install Node.js and npm on Ubuntu is to use the Ubuntu repository, open a terminal (Ctrl + Alt + T) from the Ubuntu repository to install Node.js and npm and run the following command
sudo apt update
sudo apt install nodejs npm
The above command will install many packages in order to compile and install native plugins from npm
Verify installation
nodejs --version && npm --version
v12.21.0
7.5.2
Uninstall
Sometimes, you may want to uninstall Node.js. You can do this by simply running the following command on the terminal
sudo apt-get remove nodejs npm
sudo apt update
Post comment 取消回复