X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;f=org.simantics.maps.server%2Fnode%2Fnode-v4.8.0-win-x64%2Fnode_modules%2Fnpm%2Fhtml%2Fdoc%2Ffiles%2Fnpmrc.html;fp=org.simantics.maps.server%2Fnode%2Fnode-v4.8.0-win-x64%2Fnode_modules%2Fnpm%2Fhtml%2Fdoc%2Ffiles%2Fnpmrc.html;h=84479a35973975bc1dcc4cff1098fbae7a189061;hb=2529be6d456deeb07c128603ce4971f1dc29b695;hp=0000000000000000000000000000000000000000;hpb=2636fc31c16c23711cf2b06a4ae8537bba9c1d35;p=simantics%2Fdistrict.git diff --git a/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/html/doc/files/npmrc.html b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/html/doc/files/npmrc.html new file mode 100644 index 00000000..84479a35 --- /dev/null +++ b/org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/html/doc/files/npmrc.html @@ -0,0 +1,93 @@ + + +
The npm config files
+npm gets its config settings from the command line, environment
+variables, and npmrc
files.
The npm config
command can be used to update and edit the contents
+of the user and global npmrc files.
For a list of available configuration options, see npm-config(7).
+The four relevant files are:
+All npm config files are an ini-formatted list of key = value
+parameters. Environment variables can be replaced using
+${VARIABLE_NAME}
. For example:
prefix = ${HOME}/.npm-packages
+
Each of these files is loaded, and config options are resolved in +priority order. For example, a setting in the userconfig file would +override the setting in the globalconfig file.
+Array values are specified by adding "[]" after the key name. For +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
+account (i.e. must have a mode of 0600
), otherwise they will be ignored by
+npm!
Lines in .npmrc
files are interpreted as comments when they begin with a ;
or #
character. .npmrc
files are parsed by npm/ini, which specifies this comment syntax.
For example:
+# last modified: 01 Jan 2016
+; Set a new registry for a scoped package
+@myscope:registry=https://mycustomregistry.example.org
+
When working locally in a project, a .npmrc
file in the root of the
+project (ie, a sibling of node_modules
and package.json
) will set
+config values specific to this project.
Note that this only applies to the root of the project that you're +running npm in. It has no effect when your module is published. For +example, you can't publish a module that forces itself to install +globally, or in a different location.
+Additionally, this file is not read in global mode, such as when running
+npm install -g
.
$HOME/.npmrc
(or the userconfig
param, if set in the environment
+or on the command line)
$PREFIX/etc/npmrc
(or the globalconfig
param, if set above):
+This file is an ini-file formatted list of key = value
parameters.
+Environment variables can be replaced as above.
path/to/npm/itself/npmrc
This is an unchangeable "builtin" configuration file that npm keeps
+consistent across updates. Set fields in here using the ./configure
+script that comes with npm. This is primarily for distribution
+maintainers to override default configs in a standard and consistent
+manner.