We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c13800 commit ef2cbaeCopy full SHA for ef2cbae
packages/@vue/cli/lib/Upgrader.js
@@ -201,6 +201,10 @@ module.exports = class Upgrader {
201
const installed = await this.pm.getInstalledVersion(name)
202
const wanted = await this.pm.getRemoteVersion(name, range)
203
204
+ if (installed === 'N/A') {
205
+ throw new Error('At least one dependency is not installed. Please run npm install or yarn before trying to upgrade')
206
+ }
207
+
208
let latest = await this.pm.getRemoteVersion(name)
209
if (includeNext) {
210
const next = await this.pm.getRemoteVersion(name, 'next')
0 commit comments