$ wget https://nodejs.org/dist/v14.16.0/node-v14.16.0-linux-x64.tar.xz $ tar xvf node-v14.16.0-linux-x64.tar.xz $ mv node-v14.16.0-linux-x64 /usr/local/node |
$ cd /usr/bin $ ln -s /usr/local/node/bin/node node $ ln -s /usr/local/node/bin/npm npm |
$ npm install -g cnpm --registry=https://registry.npm.taobao.org $ cd /usr/bin $ ln -s /usr/local/node/lib/node_modules/cnpm/bin/cnpm cnpm $ npm install npm run build & npm run start |
$ git clone https://github.com/YunYouJun/air-conditioner |
$ firewall-cmd --zone=public --add-port=3000/tcp --permanent $ firewall-cmd --reload |
$ cd air-conditioner/ $ npm install |
$ npm start |
cnpm run start |
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) | Powered by Discuz! X3.2 |