
So others can easily use it.If you have Docker installed, you can install and use JupyterLab by selecting one The entire solution is wrapped together as a neat little module called npmrcd Worked perfectly for me too - just look at that glorious notification in the Solution used by other modules for triggering a native notifications, and it The conclusion that the node-notifier module seems to be the most common Modules I’ve used trigger native desktop notifications. Process running in the background, but then I recalled that various Node.js I wasn’t sure how best to notify myself of the change since this would be a Based on the DNS/WiFi results invoke the npmrc command to change registry.Check the WiFi SSID that my Mac is connected to.Perform a DNS lookup to verify if the corporate registry could be resolved.To this end, I created a small Node.js script that would beĮxecuted by the macOS Agent every couple of minutes to: Once I had the Agent, lookup, and npmrc pieces figured out, I needed to wire So, my Mac will check verify it’s connected to the correct registry every two This plist tells the OS to run my-daemon-script.js once every 120 seconds. Label com.npmrcd EnvironmentVariables PATH my-path-string HOME /Users/my-username Program my-daemon-script.js RunAtLoad StartInterval 120 StandardOutPath /tmp/npmrcd.stdout StandardErrorPath /tmp/npmrcd.stderr Probably my own fault since I just looked at the summary on the homepage of


Agents and DaemonsĪutomating the switch between profiles by running a script on a regular I could focus purely on the automation work. The npmrc package worked perfectly despite not being updated in 5 years, andįinding an existing tool to manage the profiles saved me some time and meant Npm config set cafile $CA_FILEPATH # Switch back to the default profile Npm config set registry $CORPORATE_REGISTRY_URL
