我正在尝试通过vue-cli
更新项目以使用最新的Vue组件,但这失败了。它要求我全局安装vue软件包,但之后仍然失败,并显示相同的指令:
$ vue --version
3.7.0
$ npm --version
6.9.0
$ node --version
v10.15.3
$ grep @vue package.json
"@vue/cli-plugin-babel": "^3.1.1",
"@vue/cli-plugin-e2e-cypress": "^3.1.1",
"@vue/cli-plugin-eslint": "^3.1.4",
"@vue/cli-plugin-unit-mocha": "^3.1.1",
"@vue/cli-service": "^3.1.2",
"@vue/test-utils": "^1.0.0-beta.20",
$ vue upgrade
Command vue upgrade requires a global addon to be installed.
Please run npm install -g @vue/cli-upgrade and try again.
$ npm install -g @vue/cli-upgrade
+ @vue/cli-upgrade@3.7.0
updated 1 package in 2.395s
$ vue upgrade
Command vue upgrade requires a global addon to be installed.
Please run npm install -g @vue/cli-upgrade and try again.
任何人都可以建议我错过的内容吗?