diff --git a/scripts/local-registry.sh b/scripts/local-registry.sh index a96d0e19d9..bf33080248 100755 --- a/scripts/local-registry.sh +++ b/scripts/local-registry.sh @@ -5,14 +5,14 @@ COMMAND=$1 if [[ $COMMAND == "enable" ]]; then echo "Setting registry to local registry" echo "To Disable: yarn local-registry disable" - npm config set registry http://localhost:4873/ + npm config set registry http://localhost:4873/ --location user yarn config set registry http://localhost:4873/ fi if [[ $COMMAND == "disable" ]]; then - npm config delete registry + npm config delete registry --location user yarn config delete registry - CURRENT_NPM_REGISTRY=$(npm config get registry) + CURRENT_NPM_REGISTRY=$(npm config get registry --location user) CURRENT_YARN_REGISTRY=$(yarn config get registry) echo "Reverting registries"