nvm-vanilla 1.0.2 → 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 +2 -2
- package/src/nvm.ps1 +2 -4
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -45,7 +45,7 @@ const promisifySpawn = (command, args, options) => {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
const getNodeVersion = async (semanticVersion) => {
|
|
48
|
-
const npmViewOutput = await promisify(execFile)(
|
|
48
|
+
const npmViewOutput = await promisify(execFile)(npmCommand, [
|
|
49
49
|
'view',
|
|
50
50
|
nodePackageName + '@' + semanticVersion,
|
|
51
51
|
'version',
|
|
@@ -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
|
}
|
package/src/nvm.ps1
CHANGED