前端开发技术总结–AntD环境快速搭建教程

1、下载nodejs包:https://nodejs.org/dist/v16.5.0/node-v16.5.0.tar.gz
2、安装nodejs & npm

  • tar -zxvf node-v16.5.0.tar.gz
  • cd node-v16.5.0/
  • ./configure
  • make && make install

如果提示缺少gcc编译器,安装:yum install gcc-c++.x86_64 -y

3、安装脚手架:git clone –depth=1 https://github.com/vueComponent/ant-design-vue-pro.git openplat

  • cd openplat
  • npm install
  • npm run serve
  • npm run build
  • npm install -g serve
  • serve -s dist

发表评论