When using npm behind corporate proxy we have need to have following configurations in .npmrc
file in user home directory.
proxy = http://<username>:<pass>@<proxy_host>:<proxy_port>/
registry = http://registry.npmjs.org/
https-proxy = http://<username>:<pass>@<proxy_host>:<proxy_port>/
While this works fine, there is a need to hardcode password in the .npmrc
file. Also corporate password change policy mandates to change password after a certain period of time.
Is there a way/configuration to prompt user for password instead of having it in .npmrc
file. May be like the way it works for git clone
where it asks for password while cloning if repository is password protected.
via Sandeep Kumar
No comments:
Post a Comment