Last active
September 12, 2025 10:33
-
-
Save got4416/2d2ef93151a4a358900401ef44ea8e4c to your computer and use it in GitHub Desktop.
Shim settings required for installation in volta-windows-zip (verified in v2.0.2)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @echo off | |
| pushd "%~dp0" | |
| set VOLTA_SHIM_EXE=volta-shim.exe | |
| set SHIM_BINARY=node,npm,npx,pnpm,yarn,yarnpkg | |
| set SHIM_SCRIPT=npm,npx,pnpm,yarn,yarnpkg | |
| if not exist %VOLTA_SHIM_EXE% ( | |
| echo ERROR %VOLTA_SHIM_EXE% not found! | |
| echo. | |
| pause | |
| exit /b 1 | |
| ) | |
| for %%s in (%SHIM_BINARY%) do ( | |
| echo create %%s.exe | |
| copy /y %VOLTA_SHIM_EXE% %%s.exe | |
| ) | |
| for %%s in (%SHIM_SCRIPT%) do ( | |
| echo create %%s.cmd | |
| ( | |
| echo @echo off | |
| echo ^"^%%^~dpn0.exe^" ^%%^* | |
| )>%%s.cmd | |
| ) | |
| popd | |
| exit /b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment