mirror of
https://github.com/coreybutler/nvm-windows.git
synced 2025-09-01 18:35:13 +00:00
Enforce utf-8 in install of settings.txt. Resolves #726.
This commit is contained in:
@@ -11,6 +11,8 @@ for /f "skip=2 tokens=2,*" %%A in ('reg query "HKLM\System\CurrentControlSet\Con
|
||||
setx /M PATH "%%B;%%NVM_HOME%%;%%NVM_SYMLINK%%"
|
||||
)
|
||||
|
||||
chcp 65001 > nul
|
||||
|
||||
if exist "%SYSTEMDRIVE%\Program Files (x86)\" (
|
||||
set SYS_ARCH=64
|
||||
) else (
|
||||
@@ -19,4 +21,5 @@ set SYS_ARCH=32
|
||||
(echo root: %NVM_HOME% && echo path: %NVM_SYMLINK% && echo arch: %SYS_ARCH% && echo proxy: none) > %NVM_HOME%\settings.txt
|
||||
|
||||
notepad %NVM_HOME%\settings.txt
|
||||
|
||||
@echo on
|
||||
|
Reference in New Issue
Block a user