.npmrc registry code example
Example 1: npm install custom registry
npm config set registry <registry url>
npm install --registry=<registry url>
Example 2: npm windows registry
var utils = require('windows-registry').utils;utils.associateExeForFile('myTestHandler', 'A test handler for unit tests', 'C:\\path\\to\\icon', 'C:\\Program Files\\nodejs\\node.exe %1', '.zzz');