vuejs / vue-cli

🛠️ webpack-based tooling for Vue.js Development
https://cli.vuejs.org/
MIT License
29.75k stars 6.32k forks source link

Vue Upgrade Stalls #5026

Open njwest opened 4 years ago

njwest commented 4 years ago

Version

4.1.2

Environment info

  System:
    OS: macOS Mojave 10.14.6
    CPU: (8) x64 Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
  Binaries:
    Node: 12.12.0 - /usr/local/bin/node
    Yarn: 1.19.1 - /usr/local/bin/yarn
    npm: 6.13.4 - /usr/local/bin/npm
  Browsers:
    Chrome: 79.0.3945.88
    Firefox: Not Found
    Safari: 13.0.4
  npmPackages:
    @coreui/vue: ^2.1.2 => 2.1.2 
    @vue/babel-helper-vue-jsx-merge-props:  1.0.0 
    @vue/babel-plugin-transform-vue-jsx:  1.0.0 
    @vue/babel-preset-app:  3.9.2 
    @vue/babel-preset-jsx:  1.0.0 
    @vue/babel-sugar-functional-vue:  1.0.0 
    @vue/babel-sugar-inject-h:  1.0.0 
    @vue/babel-sugar-v-model:  1.0.0 
    @vue/babel-sugar-v-on:  1.0.0 
    @vue/cli-overlay:  3.9.0 
    @vue/cli-plugin-babel: ^3.4.1 => 3.9.2 
    @vue/cli-plugin-eslint: ^3.4.1 => 3.9.2 
    @vue/cli-service: ^3.6.0 => 3.9.2 
    @vue/cli-shared-utils:  3.9.0 
    @vue/component-compiler-utils:  2.6.0 
    @vue/preload-webpack-plugin:  1.1.0 
    @vue/test-utils: ^1.0.0-beta.29 => 1.0.0-beta.29 
    @vue/web-component-wrapper:  1.2.0 
    babel-helper-vue-jsx-merge-props:  2.0.3 
    eslint-plugin-vue:  4.7.1 
    portal-vue:  2.1.6 
    vue: ^2.6.8 => 2.6.10 
    vue-apollo: ^3.0.0-rc.7 => 3.0.0 
    vue-class-component:  7.1.0 
    vue-cli-plugin-apollo: ^0.19.1 => 0.19.2 
    vue-cli-webpack:  1.0.0 
    vue-eslint-parser:  2.0.3 
    vue-functional-data-merge:  3.1.0 
    vue-hot-reload-api:  2.3.3 
    vue-router: ^3.0.6 => 3.0.7 
    vue-slider-component: ^3.0.41 => 3.0.43 
    vue-style-loader:  4.1.2 
    vue-template-compiler: ^2.6.8 => 2.6.10 
    vue-template-es2015-compiler:  1.9.1 
  npmGlobalPackages:
    @vue/cli: 4.1.2

Steps to reproduce

  1. Have a Vue project containing the package "@vue/cli-service": "^3.6.0"
  2. Attempt to upgrade via vue upgrade

What is expected?

After running vue upgrade via CLI in my vue project directory, I expect an upgrade wizard to assist with upgrading @vue/cli dependencies.

What is actually happening?

I receive the following message, one about a slow connection to the NPM registry, and another never-ending "Gathering package information..." loading message

⠹  Gathering package information...?  Your connection to the default npm registry seems to be slow.
⠇  Gathering package information...

I've tested my connection to the default npm registry, and in every other case it is not slow at all. Have tried the usual re-starting, upgrading, etc, but to no avail


On a sidenote, it says "Firefox: Not Found" when I run vue info, but I do, in fact, have Firefox 71.0 installed. This is a separate issue, I realize

lucastraba commented 4 years ago

+1

bzelba commented 4 years ago

+1 and for me vue upgrade --all did the trick.

matacabras commented 4 years ago

Thanks @garlian. Solved the problem for me

lbineau commented 3 years ago

@bzelba's workaround worked for me. Still the original issue is very annoying, according to docs only vue upgrade is required to update dependencies https://cli.vuejs.org/guide/installation.html#project-dependencies ([plugin-name] being optional)