Install Ant Design Pro on Ubuntu server 20.04

Notes written by myself, not reproduced, just for your own records.

1. Brand new system

2. Upgrade apt

sudo apt update
sudo apt upgrade

3. Create the lmkjsite folder in the root directory (you can choose the folder name yourself) and download the project file from Git

git clone --depth=1 https://github.com/ant-design/ant-design-pro.git lmkjsite

4. Update the resource library path, download and execute the NodeSource installation script. The folder of the script is /tmp/nodesource_setup.sh

curl -sL https://deb.nodesource.com/setup_14.x -o /tmp/nodesource_setup.sh

5. Run the installation script
 

sudo bash /tmp/nodesource_setup.sh

6. Install Nodejs

sudo apt install nodejs

7. Check the installed node version

node -v

8. Enter the project folder

cd lmkjsite

9. Install project dependencies

npm install

10. Solutions to many warnings during installation

npm audit fix
npm audit fix --force
npm audit

11. Run the project

npm start

Access via http://localhost:8000 or http://IP address:8000

Guess you like

Origin blog.csdn.net/ynstxx/article/details/124933834