voxpupuli / puppet-nodejs

Puppet module to install nodejs and global npm packages
https://forge.puppet.com/puppet/nodejs
Apache License 2.0
113 stars 247 forks source link

Manage /root/.npmrc #216

Closed ghoneycutt closed 8 years ago

ghoneycutt commented 8 years ago

This is necessary to specify the _auth config key which cannot be set using 'npm config set _auth'.

ghoneycutt commented 8 years ago

I'm using Artifactory with an internal NPM registry. Part of that configuration is specifying _auth, though this cannot be done using npm config set _auth, which is nice, as it would expose the credentials. This PR is meant to allow that functionality.

The README states that the module manages the npmrc, which it does not, until now, though it specifically manages /root/.npmrc.

ghoneycutt commented 8 years ago

@jyaworski Thank you!

Could you please create a new tagged release with this commit.