vue-cli
vue-cli copied to clipboard
At least one dependency can't be found. Which dependency?
What problem does this feature solve?
When upgrading Vue you may get an error stating a dependency can't be found, but it doesn't tell you which one. In my case it ended up being @vue/cli-plugin-babel
https://github.com/vuejs/vue-cli/blob/f7dc46d0692c2d8a07f5c8b0580177de81c150b0/packages/%40vue/cli/lib/Upgrader.js#L160

We should include the name of the dependency in the log output.
What does the proposed API look like?
This isn't really an API, it's just better logging/exception handling
Does anyone have an update on this issue? I'm stuck upgrading a project from vue 2 - 3 :(
npm un -g @vue/cli
nvm use 14
rm -rf node_modules
npm install
npm install -g @vue/cli
vue upgrade
This also happens when using yarn PnP, becuase it tries to look for a node_modules folder, which does not exist.
This was my workaround:
- Change
nodeLinker: pnptonodeLinker: node-modulesin.yarnrc.yml yarn cache cleanyarn installvue upgrade- Change
nodeLinker: node-modulestonodeLinker: pnpin.yarnrc.yml rm -rf node_mdulesyarn install
I just did npm install then I can do vue upgrade.