| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168 | .TH "NPM" "1" "August 2021" "" "".SH "NAME"\fBnpm\fR \- a JavaScript package manager.PBuild Status \fIhttps://img\.shields\.io/travis/npm/cli/latest\.svg\fR \fIhttps://travis\-ci\.org/npm/cli\fR.SH SYNOPSIS.PThis is just enough info to get you up and running\..PMuch more info will be available via \fBnpm help\fP once it's installed\..SH IMPORTANT.P\fBYou need node v6 or higher to run this program\.\fR.PTo install an old \fBand unsupported\fR version of npm that works on node v5and prior, clone the git repo and dig through the old tags and branches\..P\fBnpm is configured to use npm, Inc\.'s public registry athttps://registry\.npmjs\.org by default\.\fR Use of the npm public registryis subject to terms of use available at https://www\.npmjs\.com/policies/terms\|\..PYou can configure npm to use any compatible registry youlike, and even run your own registry\. Check out the doc onregistries \fIhttps://docs\.npmjs\.com/misc/registry\fR\|\..SH Super Easy Install.Pnpm is bundled with node \fIhttps://nodejs\.org/en/download/\fR\|\..SS Windows Computers.PGet the MSI \fIhttps://nodejs\.org/en/download/\fR\|\.  npm is in it\..SS Apple Macintosh Computers.PGet the pkg \fIhttps://nodejs\.org/en/download/\fR\|\.  npm is in it\..SS Other Sorts of Unices.PRun \fBmake install\fP\|\.  npm will be installed with node\..PIf you want a more fancy pants install (a different version, customizedpaths, etc\.) then read on\..SH Fancy Install (Unix).PThere's a pretty robust install script athttps://www\.npmjs\.com/install\.sh\|\.  You can download that and run it\..PHere's an example using curl:.P.RS 2.nfcurl \-L https://www\.npmjs\.com/install\.sh | sh.fi.RE.SS Slightly Fancier.PYou can set any npm configuration params with that script:.P.RS 2.nfnpm_config_prefix=/some/path sh install\.sh.fi.RE.POr, you can run it in uber\-debuggery mode:.P.RS 2.nfnpm_debug=1 sh install\.sh.fi.RE.SS Even Fancier.PGet the code with git\.  Use \fBmake\fP to build the docs and do other stuff\.If you plan on hacking on npm, \fBmake link\fP is your friend\..PIf you've got the npm source code, you can also semi\-permanently setarbitrary config keys using the \fB\|\./configure \-\-key=val \.\.\.\fP, and thenrun npm commands by doing \fBnode bin/npm\-cli\.js <command> <args>\fP\|\.  (This is helpfulfor testing, or running stuff without actually installing npm itself\.).SH Windows Install or Upgrade.PMany improvements for Windows users have been made in npm 3 \- you will have a betterexperience if you run a recent version of npm\. To upgrade, either use Microsoft'supgrade tool \fIhttps://github\.com/felixrieseberg/npm\-windows\-upgrade\fR,download a new version of Node \fIhttps://nodejs\.org/en/download/\fR,or follow the Windows upgrade instructions in theInstalling/upgrading npm \fIhttps://npm\.community/t/installing\-upgrading\-npm/251/2\fR post\..PIf that's not fancy enough for you, then you can fetch the code withgit, and mess with it directly\..SH Installing on Cygwin.PNo\..SH Uninstalling.PSo sad to see you go\..P.RS 2.nfsudo npm uninstall npm \-g.fi.RE.POr, if that fails,.P.RS 2.nfsudo make uninstall.fi.RE.SH More Severe Uninstalling.PUsually, the above instructions are sufficient\.  That will removenpm, but leave behind anything you've installed\..PIf you would like to remove all the packages that you have installed,then you can use the \fBnpm ls\fP command to find them, and then \fBnpm rm\fP toremove them\..PTo remove cruft left behind by npm 0\.x, you can use the included\fBclean\-old\.sh\fP script file\.  You can run it conveniently like this:.P.RS 2.nfnpm explore npm \-g \-\- sh scripts/clean\-old\.sh.fi.RE.Pnpm uses two configuration files, one for per\-user configs, and anotherfor global (every\-user) configs\.  You can view them by doing:.P.RS 2.nfnpm config get userconfig   # defaults to ~/\.npmrcnpm config get globalconfig # defaults to /usr/local/etc/npmrc.fi.RE.PUninstalling npm does not remove configuration files by default\.  Youmust remove them yourself manually if you want them gone\.  Note thatthis means that future npm installs will not remember the settings thatyou have chosen\..SH More Docs.PCheck out the docs \fIhttps://docs\.npmjs\.com/\fR\|\..PYou can use the \fBnpm help\fP command to read any of them\..PIf you're a developer, and you want to use npm to publish your program,you should read this \fIhttps://docs\.npmjs\.com/misc/developers\fR\|\..SH BUGS.PWhen you find issues, please report them:.RS 0.IP \(bu 2web:https://npm\.community/c/bugs.RE.PBe sure to include \fIall\fR of the output from the npm command that didn't workas expected\.  The \fBnpm\-debug\.log\fP file is also helpful to provide\..SH SEE ALSO.RS 0.IP \(bu 2npm(1).IP \(bu 2npm\-help(1).RE
 |