安装Node.js

curl --silent --location https://rpm.nodesource.com/setup_16.x | sudo bash -
yum install nodejs

【备考】以前的做法

yum install nodejs npm --enablerepo=epel

引入Express

npm install -g express

使用Express

使用ejs在画面上

express -e ディレクトリ名 -t ejs
cd ディレクトリ名 && npm install
npm install  
bannerAds