mumu_v
mumu_v
  • 发布:2024-06-04 16:20
  • 更新:2024-06-13 16:39
  • 阅读:204

npx @dcloudio/uvm@latest alpha 无法升级

分类:uni-app

PS D:\code\app_alarm> npx @dcloudio/uvm@latest alpha
C:\Users\user\AppData\Local\npm-cache_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\version.js:101
throw new Error('Not find version: ' + target)
^

Error: Not find version: 4.18.2024060311-alpha
at find (C:\Users\mumu\AppData\Local\npm-cache_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\lib\version.js:101:11)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async start (C:\Users\mumu\AppData\Local\npm-cache_npx\725dad05f6f22981\node_modules\@dcloudio\uvm\bin\index.js:16:19)

Node.js v20.11.1

感觉像是新版是不是版本写错了

{
"name": "app",
"private": true,
"version": "1.0.0",
"scripts": {
"lint": "eslint --fix src --ext .js,.vue",
"prepare": "husky install",
"echo:pre": "echo 'npx lint-staged' > .husky/pre-commit",
"echo:commit": "echo 'npx --no -- commitlint --edit \"$1\"' > .husky/commit-msg",
"echo:commitlint": "echo \"module.exports = {extends: ['@commitlint/config-conventional']}\" > commitlint.config.js",
"dev": "set NODE_ENV=development&& node ./shell/manifest.mjs && uni",
"dev:app": "uni -p app",
"dev:wx": "set NODE_ENV=development&& node ./shell/manifest.mjs && uni -p mp-weixin",
"prod:app": "set NODE_ENV=production&& node ./shell/manifest.mjs && node ./shell/prod.mjs",
"env": "set NODE_ENV=production&&node ./shell/env.mjs",
"postinstall": "patch-package"
},
"dependencies": {
"@dcloudio/uni-app": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-app-plus": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-components": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-h5": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-alipay": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-baidu": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-jd": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-kuaishou": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-lark": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-qq": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-toutiao": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-weixin": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-mp-xhs": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-quickapp-webview": "3.0.0-alpha-4010720240511003",
"axios": "^0.27.2",
"dayjs": "^1.11.10",
"echarts": "^5.4.3",
"iconv-lite": "^0.6.3",
"inquirer": "^9.2.22",
"jsencrypt": "^3.2.1",
"jsrsasign": "^11.1.0",
"patch-package": "^8.0.0",
"pinia": "2.0.36",
"pinia-plugin-unistorage": "^0.0.19",
"sass": "^1.72.0",
"uniapp-axios-adapter": "^0.3.2",
"uuid": "^9.0.1",
"vue": "^3.4.21",
"vue-i18n": "^9.1.9",
"wot-design-uni": "1.2.22"
},
"devDependencies": {
"@babel/core": "^7.23.9",
"@babel/eslint-parser": "^7.23.10",
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@dcloudio/types": "^3.4.8",
"@dcloudio/uni-automator": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-cli-shared": "3.0.0-alpha-4010720240511003",
"@dcloudio/uni-stacktracey": "3.0.0-alpha-4010720240511003",
"@dcloudio/vite-plugin-uni": "3.0.0-alpha-4010720240511003",
"@vue/runtime-core": "^3.4.21",
"add": "^2.0.6",
"commitizen": "^4.3.0",
"cz-conventional-changelog": "^3.3.0",
"eslint": "^8.56.0",
"eslint-plugin-prettier": "^5.1.2",
"eslint-plugin-vue": "^9.19.2",
"husky": "^9.0.11",
"prettier": "2.8.8",
"uni-mini-router": "^0.1.6",
"uni-read-pages-vite": "^0.0.6",
"vite": "5.2.8",
"vite-plugin-restart": "^0.4.0"
},
"config": {
"commitizen": {
"path": "node_modules/cz-conventional-changelog"
}
}
}

2024-06-04 16:20 负责人:无 分享
已邀请:
7***@qq.com

7***@qq.com

遇到了同样的问题

新创建了官方demo 执行:
npx @dcloudio/uvm@latest alpha

throw new Error('Not find version: ' + target)

也一样 看起来像是匹配不到合适的版本号

julytian

julytian

再试下重新更新下

要回复问题请先登录注册