mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-26 07:32:01 +00:00
fix(nuxi): use rm rather than rmdir (#4100)
This commit is contained in:
parent
e1e3f5063d
commit
301f242422
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user