diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-05-28 18:52:32 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-05-28 18:53:38 +0300 |
commit | 14aceddaf15f8310b6ec29c2c7dafac7695ca22b (patch) | |
tree | ba508fa1a09f0a0845fd5ce426587a25485c36e3 /doc | |
parent | cf109a682f38a059a994da953d5c1b4aaece5e2f (diff) |
doc: tweak .npmrc perm warning wording for clarity
Diffstat (limited to 'doc')
-rw-r--r-- | doc/files/npmrc.md | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/files/npmrc.md b/doc/files/npmrc.md index 00225e968..d54369e1f 100644 --- a/doc/files/npmrc.md +++ b/doc/files/npmrc.md @@ -20,8 +20,6 @@ The four relevant files are: * global config file ($PREFIX/etc/npmrc) * npm builtin config file (/path/to/npm/npmrc) -**NOTE:** The per-project or per-user config files need to have a **chmod of 600**, otherwise they _will be ignored by npm!_ - All npm config files are an ini-formatted list of `key = value` parameters. Environment variables can be replaced using `${VARIABLE_NAME}`. For example: @@ -38,6 +36,11 @@ example: key[] = "first value" key[] = "second value" +**NOTE:** Because local (per-project or per-user) `.npmrc` files can contain +sensitive credentials, they must be readable and writable _only_ by your user +accoung (i.e. must have a mode of `0600`), otherwise they _will be ignored by +npm!_ + ### Per-project config file When working locally in a project, a `.npmrc` file in the root of the |