执行 pnpm run info
如下信息
> hbb_app@2.2.20 info /Users/demo/projects/native_app
> node node_modules/@dcloudio/vue-cli-plugin-uni/commands/info.js
uni-app v3.2.11
uni-app cli v2.0.0-alpha-32920211022004
Environment Info:
System:
OS: macOS 12.0.1
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Binaries:
Node: 16.13.0 - /usr/local/bin/node
Yarn: Not Found
npm: 8.1.0 - /usr/local/bin/npm
Browsers:
Chrome: 95.0.4638.69
Firefox: Not Found
Safari: 15.1
npmPackages:
@dcloudio/types: ^2.5.8 => 2.5.12
@dcloudio/uni-app-plus: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-cli-i18n: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-cli-shared: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-h5: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-helper-json: ^1.0.13 => 1.0.13
@dcloudio/uni-i18n: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-migration: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-mp-weixin: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-stat: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-template-compiler: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/uni-ui: ^1.3.9 => 1.4.6
@dcloudio/vue-cli-plugin-hbuilderx: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/vue-cli-plugin-uni: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/vue-cli-plugin-uni-optimize: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/webpack-uni-mp-loader: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@dcloudio/webpack-uni-pages-loader: 2.0.0-alpha-32920211022004 => 2.0.0-alpha-32920211022004
@vue/cli-plugin-babel: ~4.5.0 => 4.5.15
@vue/cli-service: ~4.5.0 => 4.5.15
eslint-plugin-vue: ^7.15.2 => 7.20.0
vue: ^2.6.11 => 2.6.14
vue-eslint-parser: 7.11.0
vue-template-compiler: ^2.6.14 => 2.6.14
vuex: ^3.6.0 => 3.6.2
vuex-persistedstate: ^3.0.0 => 3.2.1
npmGlobalPackages:
@vue/cli: Not Found
package.json
文件如下
{
"name": "hbb_app",
"version": "2.2.20",
"private": true,
"engines": {
"node": ">=16",
"pnpm": ">=6"
},
"scripts": {
"build:app-plus": "cross-env NODE_ENV=production UNI_PLATFORM=app-plus vue-cli-service uni-build",
"dev": "cross-env NODE_ENV=development UNI_PLATFORM=app-plus vue-cli-service uni-build --watch",
"info": "node node_modules/@dcloudio/vue-cli-plugin-uni/commands/info.js",
"stylelintfix": "stylelint 'src/**/*.(nvue|vue|scss|css)' --fix",
"eslintfix": "eslint --ext .js,.vue,.nvue src --fix"
},
"dependencies": {
"@dcloudio/uni-app-plus": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-h5": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-i18n": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-mp-weixin": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-stat": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-ui": "^1.3.9",
"dayjs": "^1.10.4",
"lodash": "^4.17.20",
"md5": "^2.3.0",
"mp-html": "^2.1.4",
"url-parse": "^1.5.1",
"vue": "^2.6.11",
"vuex": "^3.6.0",
"vuex-persistedstate": "^3.0.0"
},
"devDependencies": {
"@dcloudio/types": "^2.5.8",
"@dcloudio/uni-cli-i18n": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-cli-shared": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-helper-json": "^1.0.13",
"@dcloudio/uni-migration": "2.0.0-alpha-32920211022004",
"@dcloudio/uni-template-compiler": "2.0.0-alpha-32920211022004",
"@dcloudio/vue-cli-plugin-hbuilderx": "2.0.0-alpha-32920211022004",
"@dcloudio/vue-cli-plugin-uni": "2.0.0-alpha-32920211022004",
"@dcloudio/vue-cli-plugin-uni-optimize": "2.0.0-alpha-32920211022004",
"@dcloudio/webpack-uni-mp-loader": "2.0.0-alpha-32920211022004",
"@dcloudio/webpack-uni-pages-loader": "2.0.0-alpha-32920211022004",
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"babel-eslint": "^10.1.0",
"babel-plugin-import": "^1.11.0",
"cross-env": "^7.0.2",
"eslint": "^7.32.0",
"eslint-plugin-vue": "^7.15.2",
"husky": "^7.0.1",
"lint-staged": "^11.1.2",
"postcss-comment": "^2.0.0",
"sass": "^1.32.4",
"sass-loader": "^10.1.1",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recess-order": "^2.5.0",
"stylelint-config-standard": "^22.0.0",
"stylelint-scss": "^3.21.0",
"vue-template-compiler": "^2.6.14"
},
"browserslist": [
"Android>=4.4",
"ios>=9"
],
"uni-app": {
"scripts": {}
}
}
1***@qq.com
真的是修复了吗?刚刚试了pnpm又有warn
运行
2021-11-11 15:35
DCloud_UNI_GSQ
回复 1***@qq.com: 说明你装错了版本,手动装一下最新的 alpha 版
2021-11-11 15:58
DCloud_UNI_GSQ
回复 1***@qq.com: 重新装一下,2.0.0 是错误的版本
2021-11-11 15:59