Linux installation node.js vue environment

Installing Node.js on a Linux system can be achieved through the following steps:

1. Open the terminal and update the local package list. Update with the following command:

sudo apt-get update

2. Install the PPA (Personal Package Archive) of Node.js for better version control. Use the following command:

curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -

3. Install Node.js and npm (Node.js package manager). Use the following command to install:

sudo apt-get install -y nodejs

4. Confirm whether Node.js and npm are successfully installed. Check its version with the following command:

node -v
npm -v

If the above commands can be executed normally and output version information, it means that Node.js and npm have been successfully installed.

Note: The above is how to install Node.js in Ubuntu or other Debian based Linux systems. For other Linux distributions, please refer to the official documentation.

Guess you like

Origin blog.csdn.net/qq_43770056/article/details/130296314