Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

npm-config(1) [linux man page]

NPM-CONFIG(1)                                                                                                                        NPM-CONFIG(1)

NAME
npm-config - Manage the npm configuration files SYNOPSIS
npm config set <key> <value> [-g|--global] npm config get <key> npm config delete <key> npm config list [-l] [--json] npm config edit npm get <key> npm set <key> <value> [-g|--global] aliases: c DESCRIPTION
npm gets its config settings from the command line, environment variables, npmrc files, and in some cases, the package.json file. See npm help 5 npmrc for more information about the npmrc files. See npm help 7 npm-config for a more thorough discussion of the mechanisms involved. The npm config command can be used to update and edit the contents of the user and global npmrc files. Sub-commands Config supports the following sub-commands: set npm config set key value Sets the config key to the value. If value is omitted, then it sets it to "true". get npm config get key Echo the config value to stdout. list npm config list Show all the config settings. Use -l to also show defaults. Use --json to show the settings in json format. delete npm config delete key Deletes the key from all configuration files. edit npm config edit Opens the config file in an editor. Use the --global flag to edit the global config. SEE ALSO
o npm help 5 folders o npm help 7 config o npm help 5 package.json o npm help 5 npmrc o npm help npm January 2019 NPM-CONFIG(1)

Check Out this Related Man Page

NPM-CONFIG(1)                                                                                                                        NPM-CONFIG(1)

NAME
npm-config - Manage the npm configuration files SYNOPSIS
npm config set <key> <value> [-g|--global] npm config get <key> npm config delete <key> npm config list [-l] [--json] npm config edit npm get <key> npm set <key> <value> [-g|--global] aliases: c DESCRIPTION
npm gets its config settings from the command line, environment variables, npmrc files, and in some cases, the package.json file. See npm help 5 npmrc for more information about the npmrc files. See npm help 7 npm-config for a more thorough discussion of the mechanisms involved. The npm config command can be used to update and edit the contents of the user and global npmrc files. Sub-commands Config supports the following sub-commands: set npm config set key value Sets the config key to the value. If value is omitted, then it sets it to "true". get npm config get key Echo the config value to stdout. list npm config list Show all the config settings. Use -l to also show defaults. Use --json to show the settings in json format. delete npm config delete key Deletes the key from all configuration files. edit npm config edit Opens the config file in an editor. Use the --global flag to edit the global config. SEE ALSO
o npm help 5 folders o npm help 7 config o npm help 5 package.json o npm help 5 npmrc o npm help npm January 2019 NPM-CONFIG(1)
Man Page

14 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl config file Help

Hi can anyone help me understanding the following code my %config; open my $config, '<', 'config.txt' or die $!; while(<$config>) { chomp; (my $key, my @value) = split /=/, $_; $config{$key} = join '=', @value; } (5 Replies)
Discussion started by: Harikrishna
5 Replies

2. Solaris

previous commands using UPARROW key

What settings should be done in order make UPARROW key to show previous commands on the shell prompt(Solaris)? (6 Replies)
Discussion started by: shafi2all
6 Replies

3. Solaris

Placing a config file

Hi all, I need to place a custom configuration file for a script/program that will likely be sitting in /usr/sbin, but I am unsure of exactly where to place it. In RHEL was told the config file should be in /etc/sysconfig, but no such directory exists in Solaris. Will my config file simply sit... (5 Replies)
Discussion started by: Rocket2DMn
5 Replies

4. Solaris

IPMP config

Hi All, I have unplumbed one interface. after that ifconfig -a shows that lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 e1000g0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2 ... (7 Replies)
Discussion started by: jegaraman
7 Replies

5. Shell Programming and Scripting

How to walk through a config file with /bin/sh

Hi there, i tried a lot of things actually to get my script running as expected. Situation: I have a config file with several parameters in the form FFF.thisIsaParam=Value FFF.included.AnotherPortofParam=Value Additionally there are some comments in it. Script should... (8 Replies)
Discussion started by: smhaller
8 Replies

6. Shell Programming and Scripting

some doubt in the config

Hi, there is something i found out from the config tags i didn't undertand that .. can someone help the below - <condition name="IRGCOND" value="^(\b241\b)|(\bODD\b)$"> what exactly the condition means.. (5 Replies)
Discussion started by: mail2sant
5 Replies

7. Shell Programming and Scripting

Read and edit multiple files using a while loop

Hi all, I would like to simply read a file which lists a number of pathnames and files, then search and replace key strings using a few vi commands: :1,$s/search_str/replace_str/g<return> but I am not sure how to automate the <return> of these vis commands when I am putting this in a... (8 Replies)
Discussion started by: cyberfrog
8 Replies

8. UNIX for Advanced & Expert Users

awk - remove block of text, multiple actions for 'if', inline edit

I'm having a couple of issues. I'm trying to edit a nagios config and remove a host definition if a certain "host_name" is found. My thought is I would find host definition block containing the host_name I'm looking for and output the line numbers for the first and last lines. Using set, I will... (9 Replies)
Discussion started by: mglenney
9 Replies

9. Shell Programming and Scripting

String search and replace in multiple files.

Hello. I have five config files in /etc that I want to edit in one click for testing. I would like to make a script like this : #!/bin/bash # a_file="/etc/file_1" src_str="src_string_1" rpl_str="rpl_string_1" calling_sed_or_awk_or_whatelse $a_file search_for_all $src_str replace_with... (4 Replies)
Discussion started by: jcdole
4 Replies

10. AIX

Can we directly edit "/etc/environment" file in AIX using vi ?

Hi Is it recommended to edit the file "/etc/environment" directly using vi ? (like by adding some export something= value staements) or do we need to edit /etc/profile file in order to set the environment variables, globally to the entire AIX LPAR please suggest. (5 Replies)
Discussion started by: System Admin 77
5 Replies

11. AIX

Is there virc or exrc for saving vi configuration settings in AIX?

There's no Vim in AIX (6 and 7), but Vi is natively available. I want to save my configuration for Vi like `set nu` to number lines in files. I couldn't find configuration related to Vi in /etc/ or /usr/etc/ folders. Please help me with that. (4 Replies)
Discussion started by: Chinggis6
4 Replies

12. Solaris

T4 replaced motherboard - recovering LDOM config?

T4-2 issues meant replacing motherboard. I thought the ldom config was automatically saved? Got the oracle document here. At the moment, unable to get ldoms back - here is the output from a few commands:- ldm list NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME... (4 Replies)
Discussion started by: psychocandy
4 Replies

13. Shell Programming and Scripting

Remove first meta key from json records using shell

Hi All, I need to get rid of initial meta key from json files with enclosed parenthesis from start and end of the lines which has total 4000 lines. here is the sample Json records : {"start": true, "meta": {"name": "xyz", "creation": "2017-07-14T16:20:06.000+02:00"}} I need to remove... (7 Replies)
Discussion started by: Cloud_Ninja
7 Replies

14. UNIX for Beginners Questions & Answers

Replace Stub Values In One Group Of Files With Actual Values From Another Group Of Files

I have two directories of files (new-config-files and old-config-files): new-config-files/this-db/config.inc.php new-config-files/that-db/config.inc.php new-config-files/old-db/config.inc.php new-config-files/new-db/config.inc.php new-config-files/random-database/config.inc.php etc. ... (4 Replies)
Discussion started by: spacegoose
4 Replies