go-admin-team / go-admin-ui

基于Gin + Vue + Element UI & Arco Design & Ant Design 的前后端分离权限管理系统的前端模块
https://www.go-admin.dev
MIT License
1.15k stars 710 forks source link

如何升级本地版本 #158

Closed Darrenzzy closed 1 year ago

Darrenzzy commented 2 years ago

由于从 20 年就开始用了,一直以来版本还是 go-admin@1.1.4 请问如何升级本地版本到最新版本,因为现在本地跑不起来了,总是报依赖找不到,或者说是不是把 package 里的依赖改动也可以跑?

目前报

npm install

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: go-admin@1.1.4
npm ERR! Found: eslint@7.6.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"7.6.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@">= 1.6.0 < 7.0.0" from @vue/cli-plugin-eslint@4.5.13
npm ERR! node_modules/@vue/cli-plugin-eslint
npm ERR!   dev @vue/cli-plugin-eslint@"^4.4.6" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/darren/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     ~/.npm/_logs/2021-09-05T12_47_01_352Z-debug.log

package

{
  "name": "go-admin",
  "version": "1.1.4",
  "description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
  "author": "https://github.com/wenjianzhang/go-admin-ui",
  "license": "MIT",
  "scripts": {
    "dev": "vue-cli-service serve",
    "build:prod": "vue-cli-service build",
    "build:stage": "vue-cli-service build --mode staging",
    "preview": "node build/index.js --preview",
    "lint": "eslint --ext .js,.vue src",
    "test:unit": "jest --clearCache && vue-cli-service test:unit",
    "test:ci": "npm run lint && npm run test:unit",
    "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
    "new": "plop"
  },
  "husky": {
    "hooks": {
      "pre-commit": "lint-staged"
    }
  },
  "lint-staged": {
    "src/**/*.{js,vue}": [
      "eslint --fix",
      "git add"
    ]
  },
  "keywords": [
    "vue",
    "admin",
    "dashboard",
"admin-template",
    "management-system"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/wenjianzhang/go-admin.git"
  },
  "bugs": {
    "url": "https://github.com/wenjianzhang/go-admin/issues"
  },
"dependencies": {
    "@riophae/vue-treeselect": "0.4.0",
    "@vue/babel-preset-app": "^4.5.4",
    "axios": "0.19.2",
    "clipboard": "2.0.6",
    "codemirror": "5.56.0",
    "core-js": "^3.6.5",
    "driver.js": "0.9.8",
    "dropzone": "5.7.2",
    "echarts": "4.8.0",
    "element-ui": "2.13.2",
    "file-saver": "2.0.2",
    "fuse.js": "6.4.1",
    "js-cookie": "2.2.1",
    "jsonlint": "1.6.3",
    "jszip": "3.5.0",
    "moment": "^2.27.0",
    "monaco-editor": "^0.20.0",
    "normalize.css": "8.0.1",
    "nprogress": "0.2.0",
    "path-to-regexp": "6.1.0",
    "sass-resources-loader": "^2.0.3",
    "screenfull": "5.0.2",
    "showdown": "^1.9.1",
    "solarlunar": "^2.0.7",
    "sortablejs": "1.10.2",
    "tui-editor": "1.4.10",
    "viser-vue": "^2.4.8",
    "vue": "2.6.11",
    "vue-count-to": "1.0.13",
    "vue-cropper": "^0.5.5",
    "vue-particles": "^1.0.9",
    "vue-router": "^3.4.2",
    "vue-splitpane": "1.0.6",
    "vuedraggable": "2.24.0",
    "vuex": "3.5.1",
    "webpack-bundle-analyzer": "^3.8.0",
    "xlsx": "0.16.5"
  },
 "devDependencies": {
    "@babel/core": "7.11.1",
    "@babel/register": "^7.10.5",
    "@vue/cli-plugin-babel": "4.4.6",
    "@vue/cli-plugin-eslint": "^4.4.6",
    "@vue/cli-plugin-unit-jest": "4.4.6",
    "@vue/cli-service": "4.4.6",
    "@vue/test-utils": "1.0.3",
    "autoprefixer": "^9.8.6",
    "babel-core": "7.0.0-bridge.0",
    "babel-eslint": "10.1.0",
    "babel-jest": "26.2.2",
    "beautifier": "^0.1.7",
    "chalk": "4.1.0",
    "chokidar": "3.4.2",
    "compression-webpack-plugin": "^4.0.1",
    "connect": "3.7.0",
    "eslint": "7.6.0",
    "eslint-plugin-vue": "6.2.2",
    "html-webpack-plugin": "4.3.0",
    "husky": "4.2.5",
    "lint-staged": "10.2.11",
    "mockjs": "1.1.0",
    "monaco-editor-webpack-plugin": "^1.9.0",
    "node-sass": "^4.14.1",
    "plop": "2.7.4",
    "runjs": "^4.4.2",
    "sass-loader": "^9.0.3",
    "script-ext-html-webpack-plugin": "2.1.4",
    "script-loader": "0.7.2",
    "serve-static": "^1.14.1",
    "svg-sprite-loader": "5.0.0",
    "svgo": "1.3.2",
    "vue-template-compiler": "2.6.11"
  },
  "engines": {
    "node": ">=8.9",
    "npm": ">= 3.0.0"
  },
  "browserslist": [
    "> 1%",
    "last 2 versions"
  ]
}

期望

首先本地可以跑起来

wenjianzhang commented 2 years ago

如果是pullmaster的话直接合并代码就可以了