Skip to content

Commit

Permalink
Merge pull request voxpupuli#220 from ghoneycutt/trailing_slash
Browse files Browse the repository at this point in the history
Document NPM's behavior of adding a trailing slash to URL's
  • Loading branch information
jyaworski committed Apr 21, 2016
2 parents a5e80d8 + 028a57f commit 61c6304
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,12 +294,16 @@ nodejs::npm { 'remove all express packages':

nodejs::npm::global_config_entry can be used to set/remove global npm configuration settings.

Note that when specifying a URL, such as registry, NPM will add a trailing
slash when it stores the config. You must specify a trailing slash in your URL
or the code will not be idempotent.

Examples:

```puppet
nodejs::npm::global_config_entry { 'proxy':
ensure => 'present',
value => 'http://proxy.company.com:8080',
value => 'http://proxy.company.com:8080/',
}
```

Expand Down

0 comments on commit 61c6304

Please sign in to comment.