Closed xiaoxin-ws closed 2 years ago
没有报错,成功完成配置,并且依赖锁那个文件里面有下载的依赖地址,只是没有写入到package.json.并且get提交那个写入了package.son中了。 系统win10,项目vite+vue3+ts、开发工具vscode、
{
"name": "vue3-elementplus-admin",
"private": true,
"version": "0.0.0",
"scripts": {
"web": "npx web-norm",
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
"preview": "vite preview",
"prepare": "husky install",
"pre-commit": "lint-staged",
"eslint": "eslint --cache --max-warnings 0 \"{src,mock}/**/*.{vue,ts,js,tsx}\" --fix",
"commit": "git add . && git-cz"
},
"dependencies": {
"@element-plus/icons-vue": "^2.0.6",
"axios": "^0.27.2",
"element-plus": "^2.2.9",
"pinia": "^2.0.14",
"pinia-plugin-persist": "^1.0.0",
"vue": "^3.2.37",
"vue-i18n": "^9.1.10",
"vue-router": "^4.1.1"
},
"devDependencies": {
"@types/node": "^18.0.3",
"@vitejs/plugin-vue": "^2.3.3",
"sass": "^1.53.0",
"typescript": "^4.7.4",
"unplugin-auto-import": "^0.9.2",
"unplugin-vue-components": "^0.21.1",
"vite": "^2.9.14",
"vite-plugin-svg-icons": "^2.0.1",
"vue-tsc": "^0.38.3",
"web-norm": "^1.0.20"
},
"lint-staged": {
"*.{js,ts,vue,jsx,tsx}": [
"npm run eslint"
],
"*.{js,jsx,ts,tsx,md,html,css,lees,scss,sass}": "prettier --write"
},
"config": {
"commitizen": {
"path": "@commitlint/cz-commitlint"
}
}
}
已解决,公司电脑问题,重启一下就好了
能提供下系统环境,以及是否有报错信息吗