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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nvm-vanilla",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "bin": {
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)('rd', ['/s', '/q', dir]);
196
+ await promisify(execFile)('cmd.exe', ['/c', 'rd', '/s', '/q', dir]);
197
197
  } else {
198
198
  await promisify(execFile)('rm', ['-rf', dir]);
199
199
  }