nvm-vanilla 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +1 -1
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -193,7 +193,7 @@ const corrent = async (version) => {
|
|
|
193
193
|
|
|
194
194
|
const clear = async (dir) => {
|
|
195
195
|
if (process.platform == 'win32') {
|
|
196
|
-
await promisify(execFile)('
|
|
196
|
+
await promisify(execFile)('cmd.exe', ['/c', 'rd', '/s', '/q', dir]);
|
|
197
197
|
} else {
|
|
198
198
|
await promisify(execFile)('rm', ['-rf', dir]);
|
|
199
199
|
}
|