PanJiaChen / vue-admin-template

a vue2.0 minimal admin template
https://git.io/fAnuM
MIT License
19.75k stars 7.37k forks source link

如果直接install不行的话可以试试下面的pacakge.json #781

Open zhongweibest opened 3 weeks ago

zhongweibest commented 3 weeks ago

` { "name": "vue-admin-template", "version": "4.4.0", "description": "A vue admin template with Element UI & axios & iconfont & permission control & lint", "author": "Pan panfree23@gmail.com", "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", "svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml", "lint": "eslint --ext .js,.vue src", "test:unit": "jest --clearCache && vue-cli-service test:unit", "test:ci": "npm run lint && npm run test:unit" }, "dependencies": { "axios": "0.18.1", "body-parser": "^1.20.2", "chokidar": "^3.6.0", "core-js": "3.25.5", "element-ui": "2.13.2", "js-cookie": "2.2.0", "normalize.css": "7.0.0", "nprogress": "0.2.0", "path-to-regexp": "2.4.0", "regenerator-runtime": "^0.14.1", "svg-baker-runtime": "^1.4.7", "vue": "2.6.10", "vue-router": "3.0.6", "vue-style-loader": "^4.1.3", "vuex": "3.1.0" }, "devDependencies": { "@vue/cli-plugin-babel": "4.4.4", "@vue/cli-plugin-eslint": "4.4.4", "@vue/cli-plugin-unit-jest": "4.4.4", "@vue/cli-service": "4.4.4", "@vue/test-utils": "1.0.0-beta.29", "autoprefixer": "9.5.1", "babel-eslint": "10.1.0", "babel-jest": "23.6.0", "babel-plugin-dynamic-import-node": "2.3.3", "chalk": "2.4.2", "connect": "3.6.6", "eslint": "6.7.2", "eslint-plugin-vue": "6.2.2", "html-webpack-plugin": "3.2.0", "mockjs": "1.0.1-beta3", "runjs": "4.3.2", "sass": "1.26.8", "sass-loader": "8.0.2", "script-ext-html-webpack-plugin": "2.1.3", "serve-static": "1.13.2", "svg-sprite-loader": "4.1.3", "svgo": "1.2.2", "vue-template-compiler": "2.6.10" }, "browserslist": [ "> 1%", "last 2 versions" ], "engines": { "node": ">=8.9", "npm": ">= 3.0.0" }, "license": "MIT" }

`

zhongweibest commented 3 weeks ago

之后直接用pnpm i && pnpm dev 就能启动了

wulicjk commented 6 days ago

之后直接用pnpm i && pnpm dev 就能启动了

这两步可以解决我的问题,但是为什么要这么做?

zhongweibest commented 2 days ago

就是一些版本之间得冲突导致的, 我猜测, 他当年写的时候所有版本肯定没有问题,但是随着各种组件的发展, 有些默认版本。会导致原来一些组件的代码有问题。太具体的我也不是那么明白, 我只是使用者, 能用为王。