Check for npm registry and install it if necessary.