安装node.js
wget https://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.xz
将Node.js二进制包解压到路径/usr/local
tar xf node-v14.15.0-linux-x64.tar.xz -C /usr/local/ --no-same-owner
将Node.js二进制文件所在路径加入到环境变量PATH中
echo "export PATH=/usr/local/node-v14.15.0-linux-x64/bin:$PATH" >> /etc/profile
环境变量立即生效
source /etc/profile
node -v
Vim打开config.js
cd superclass_web/ && vim src/core/data/config.js
安装npm
npm install
安装RTC SDK
npm install aliyun-webrtc-sdk -S
npm run serve