HTTP/HTTPS caching proxy for work with npm utility
# Define installation folder
export INSTALL_DIRECTORY=/usr/bin
# Use local installation
sudo bin/installer install
# Use remote installation
curl --location "https://gitlab.com/timonier/npm-proxy-cache/raw/master/bin/installer" | sudo sh -s -- install
Note 1: If you do not define INSTALL_DIRECTORY
, installer
will use in /usr/local/bin
.
Note 2: docker-for-mac
users have to configure native NFS server.
Run the command npm-proxy-cache
:
# See all npm-proxy-cache options
npm-proxy-cache --help
# Run npm-proxy-cache
npm-proxy-cache --port 8082 --verbose
# [2017-04-15 11:53:28.383] [INFO] proxy - Listening on localhost:8082 [9]
# ...