fix(nuxi): use rm rather than rmdir (#4100)

This commit is contained in:
Daniel Roe 2022-04-05 15:47:08 +01:00 committed by GitHub
parent e1e3f5063d
commit 301f242422
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,7 +39,7 @@ export default defineNuxtCommand({
consola.info('Removing lock-file and node_modules...') consola.info('Removing lock-file and node_modules...')
await Promise.all([ await Promise.all([
fsp.rm(packageManagerLocks[packageManager]), fsp.rm(packageManagerLocks[packageManager]),
fsp.rmdir('node_modules', { recursive: true }) fsp.rm('node_modules', { recursive: true })
]) ])
execSync(`${packageManager} install`, { stdio: 'inherit' }) execSync(`${packageManager} install`, { stdio: 'inherit' })
} else { } else {