-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vue upgrade command asks for a plugin and doesn't recognize when it is installed #3222
Comments
Upgraded to 3.2.2, same result. |
Because the official is not ready for the |
If so then it is still a valid bug - the help text for the CLI should be updated to remove this until it's ready, right? |
If you use the standalone installer to install |
I honestly have no idea what you are saying here. :) I installed the CLI via npm. I installed cli-upgrade via npm as well. I did not use Yarn at all. |
If you look at the code for |
Where do the docs say that Yarn is required? Heck, the docs show both npm and yarn, and npm is shown first. |
If we execute commands: npm i @vue/cli @vue/cli-upgrade
vue upgrade and get the following result:
Now we open
However, we can find the Now let's execute commands: npm uninstall @vue/cli @vue/cli-upgrade -g
yarn global add @vue/cli @vue/cli-upgrade
vue upgrade and get the following result:
But one thing that puzzles me is: npm i yarn -g
yarn global add @vue/cli @vue/cli-upgrade
vue upgrade I have to use the separate |
Update: npm i yarn -g
yarn global add @vue/cli @vue/cli-upgrade
vue --version
+ CategoryInfo : ObjectNotFound: (vue:String) [], CommandNotFoundException |
I'm having similar issues:
asks me to OS: Kubuntu 18.04 @CaiPeng1989: Yes, it does detect if your in a UpdateUpgraded node & npm and all is well. Works with: npm: 6.4.1 & node: 10.15.0. |
当我使用
但是没有什么效果, |
@gauseen 有可能是yarn.lock里面的版本已经是最新的了 |
$ vue info
Environment Info:
System:
OS: Windows 10
CPU: (8) x64 Intel(R) Core(TM) i5-8250U CPU @ 1.6
Binaries:
Node: 10.13.0 - C:\Program Files\nodejs\node.EXE
Yarn: 1.12.3 - C:\Program Files (x86)\Yarn\bin\ya
npm: 6.4.1 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: 41.16299.820.0
npmPackages:
@vue/babel-preset-app: 3.0.4
@vue/cli-overlay: 3.0.4
@vue/cli-plugin-babel: ^3.0.4 => 3.0.4
@vue/cli-plugin-eslint: ^3.0.4 => 3.0.4
@vue/cli-plugin-unit-mocha: ^3.0.4 => 3.0.4
@vue/cli-service: ^3.0.4 => 3.0.4
@vue/cli-shared-utils: 3.0.4
@vue/component-compiler-utils: 2.2.0
@vue/eslint-config-standard: ^3.0.4 => 3.0.4
@vue/preload-webpack-plugin: 1.1.0
@vue/test-utils: ^1.0.0-beta.20 => 1.0.0-beta.25
@vue/web-component-wrapper: 1.2.0
babel-helper-vue-jsx-merge-props: 2.0.3
babel-plugin-transform-vue-jsx: 4.0.1
eslint-plugin-vue: 4.7.1
vue: ^2.5.17 => 2.5.17
vue-cli-plugin-custom-config: ^0.0.3 => 0.0.3
vue-eslint-parser: 2.0.3
vue-hot-reload-api: 2.3.1
vue-lazyload: 1.2.6
vue-loader: 15.4.2
vue-router: ^3.0.1 => 3.0.1
vue-style-loader: 4.1.2
vue-template-compiler: ^2.5.17 => 2.5.17
vue-template-es2015-compiler: 1.6.0
npmGlobalPackages:
@vue/cli: Not Found
E:\workspace\mobile-seed (dev -> dev-org)
$ vue upgrade
✔ Gathering update information...
Already up-to-date. 我把 yarn.lock 删除后,但是还是不行,没有效果 |
@gauseen package.json里面已经是最新的了,没有能够升级的插件了。你可以找一个以前创建的项目试试。 |
@CaiPeng1989 不是最新版本,例如: |
@gauseen 我把版本手动改为3.2.0就可以用 |
|
Version
3.2.1
Environment info
Steps to reproduce
Command vue upgrade requires a global addon to be installed.
Please run npm install -g @vue/cli-upgrade and try again.
What is expected?
For it to attempt to update my CLI.
What is actually happening?
It reports what is shown in figure 3.
The text was updated successfully, but these errors were encountered: