You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
📝 Update README.md for version 1.4.1, detailing enhancements such as dynamic NVM path detection, improved CMD execution stability, robust error handling, and verification processes for better user experience in Windows NVM operations.
Copy file name to clipboardExpand all lines: README.md
+15-9Lines changed: 15 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -179,20 +179,20 @@ The extension provides these commands (accessible via `Ctrl+Shift+P`):
179
179
**Problem**: "NVM for Windows should be run from terminal such as CMD or Powershell"
180
180
181
181
**Automatic Solutions** (Extension handles these automatically):
182
-
1.**Method 1**: Direct cmd.exe shell execution
183
-
2.**Method 2**: `cmd /c "nvm command"` execution
184
-
3.**Method 3**: PowerShell command execution
185
-
4.**Method 4**: Environment-specific execution with proper PATH
186
-
5.**Fallback**: Enhanced terminal method with detailed feedback
182
+
1.**Dynamic NVM Path Detection**: Automatically locates `nvm.exe` using `NVM_HOME`, `%APPDATA%\nvm`, or system PATH.
183
+
2.**Enhanced CMD Execution**: Uses `cmd.exe /K` to maintain NVM environment during command execution.
184
+
3.**Error Logging**: Detailed console logs for debugging failed commands.
185
+
4.**Fallback Terminal**: Persistent terminal with extended timeouts to ensure command completion.
186
+
5.**Verification**: Confirms version switch success with robust checks.
187
187
188
188
**Manual Verification**:
189
189
```cmd
190
190
# Test NVM installation
191
191
nvm version
192
192
nvm list
193
-
194
-
# Verify PATH configuration
195
-
echo %PATH% | findstr nvm
193
+
echo %NVM_HOME%
194
+
# Verify NVM path
195
+
where nvm.exe
196
196
197
197
### Windows NVM Issues
198
198
@@ -388,7 +388,13 @@ When reporting bugs, please include:
388
388
389
389
## Changelog
390
390
391
-
## [1.4.0] - Latest Release ✨
391
+
## [1.4.1] - Latest Release ✨
392
+
393
+
-**Dynamic NVM Path Detection**: Automatically locates `nvm.exe` using `NVM_HOME`, `%APPDATA%\nvm`, or system PATH for reliable Windows NVM operations.
394
+
-**Enhanced Terminal Stability**: Improved CMD execution with persistent `/K` flag and extended timeouts to ensure command completion.
395
+
-**Robust Error Handling**: Added detailed console logs and user-friendly error messages to guide troubleshooting of NVM issues.
396
+
397
+
## [1.4.0]
392
398
393
399
-**Automatic Terminal Cleanup**: Terminals now close automatically after operations
394
400
-**Enhanced Resource Management**: Better memory usage and cleaner VS Code interface
0 commit comments