mirror of
https://gitee.com/dromara/dbswitch.git
synced 2025-08-29 08:54:00 +00:00
修复issue:I71XLP反馈的前端启动报错
This commit is contained in:
12
dbswitch-admin-ui/.babelrc
Normal file
12
dbswitch-admin-ui/.babelrc
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"presets": [
|
||||
["env", {
|
||||
"modules": false,
|
||||
"targets": {
|
||||
"browsers": ["> 1%", "last 2 versions", "not ie <= 8"]
|
||||
}
|
||||
}],
|
||||
"stage-2"
|
||||
],
|
||||
"plugins": ["transform-vue-jsx", "transform-runtime"]
|
||||
}
|
@@ -6,7 +6,31 @@
|
||||
|
||||
## 二、环境
|
||||
|
||||
**node** : >= v14.17.3
|
||||
**node** : >= v14.15.4
|
||||
|
||||
### 1、CentOS下安装Nodejs
|
||||
|
||||
```
|
||||
# 下载nodejs
|
||||
wget https://nodejs.org/dist/v14.15.4/node-v14.15.4-linux-x64.tar.xz
|
||||
# 解压缩
|
||||
tar -xvf node-v14.15.4-linux-x64.tar.xz && mkdir -p /usr/local/nodejs && mv node-v14.15.4-linux-x64/* /usr/local/nodejs/
|
||||
# 建立node软链接
|
||||
ln -s /usr/local/nodejs/bin/node /usr/local/bin
|
||||
# 建立npm 软链接
|
||||
ln -s /usr/local/nodejs/bin/npm /usr/local/bin
|
||||
# 设置国内淘宝镜像源
|
||||
npm config set registry https://registry.npm.taobao.org
|
||||
# 查看设置信息
|
||||
npm config list
|
||||
# 验证是否安装成功
|
||||
node -v
|
||||
npm -v
|
||||
```
|
||||
|
||||
### 2. Windows下安装Nodejs
|
||||
|
||||
可参考[博文教程](https://zhuanlan.zhihu.com/p/572795586)
|
||||
|
||||
## 二、构建
|
||||
|
||||
|
Reference in New Issue
Block a user