Last active
March 5, 2023 21:15
-
-
Save mribbons/bdf74cf1f9d0af1863464e996d51040f to your computer and use it in GitHub Desktop.
verdaccio private npm / win32
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
| @REM Usage: | |
| @REM cd c:\socketsupply\create-socket-app && ..\start_verdaccio && cd ..\socket && sh bin\publish-npm-modules.sh | |
| @REM Requires mingw sh (= git sh) in PATH | |
| @REM requires npm i -g npm-cli-login | |
| @REM Make sure URL doesn't have a trailing slash | |
| @ Use this environment variable in another terminal where you want to use this server instead of npmjs | |
| set NPM_CONFIG_REGISTRY=http://localhost:4873 | |
| @REM Clear package storage so we can push the same version again | |
| rm -rf %APPDATA%\verdaccio\storage | |
| start verdaccio | |
| sleep 3 | |
| call npm-cli-login -u username -p password -e user@example.com -r %NPM_CONFIG_REGISTRY% | |
| @REM npm --registry %NPM_CONFIG_REGISTRY% publish | |
| call npm whoami | |
| call npm publish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment