package.jsonの^(caret)にハマった話

背景 vue-cliを3系から4系にアップデートしたらビルドに失敗した ERROR Failed to compile with 1 errors Module build failed (from ./node_modules/eslint-loader/index.js): Error: Cannot find module 'eslint/lib/formatters/stylish' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) …