Skip to content

Commit 286ee0e

Browse files
committed
📝 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.
1 parent d9d68a8 commit 286ee0e

1 file changed

Lines changed: 15 additions & 9 deletions

File tree

‎README.md‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -179,20 +179,20 @@ The extension provides these commands (accessible via `Ctrl+Shift+P`):
179179
**Problem**: "NVM for Windows should be run from terminal such as CMD or Powershell"
180180

181181
**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.
187187

188188
**Manual Verification**:
189189
```cmd
190190
# Test NVM installation
191191
nvm version
192192
nvm list
193-
194-
# Verify PATH configuration
195-
echo %PATH% | findstr nvm
193+
echo %NVM_HOME%
194+
# Verify NVM path
195+
where nvm.exe
196196
197197
### Windows NVM Issues
198198
@@ -388,7 +388,13 @@ When reporting bugs, please include:
388388

389389
## Changelog
390390

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]
392398

393399
- **Automatic Terminal Cleanup**: Terminals now close automatically after operations
394400
- **Enhanced Resource Management**: Better memory usage and cleaner VS Code interface

0 commit comments

Comments
 (0)