From 301f2424226957fda83044f126e7ee4cae0b6d2e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 5 Apr 2022 15:47:08 +0100 Subject: [PATCH] fix(nuxi): use rm rather than rmdir (#4100) --- packages/nuxi/src/commands/upgrade.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/nuxi/src/commands/upgrade.ts b/packages/nuxi/src/commands/upgrade.ts index 91da7b3df7..9fb97ee509 100644 --- a/packages/nuxi/src/commands/upgrade.ts +++ b/packages/nuxi/src/commands/upgrade.ts @@ -39,7 +39,7 @@ export default defineNuxtCommand({ consola.info('Removing lock-file and node_modules...') await Promise.all([ fsp.rm(packageManagerLocks[packageManager]), - fsp.rmdir('node_modules', { recursive: true }) + fsp.rm('node_modules', { recursive: true }) ]) execSync(`${packageManager} install`, { stdio: 'inherit' }) } else {