Package: nodejs
Version: 0.10.29~dfsg-1.1

When installing packages with npm with -g option packages get written to
but evidently nodejs search them somewhere else (probably /usr)
Infact it seems debian nodejs packaged modules install modules in

$NODE_PATH is not set in debian package but that's what I've been told:

One thing that should be kept in mind is that if you update node as in

npm install n
n [another version]

or you update the package manager, things may mess up once more.

Relevant page of node manual:

# Package: npm
# Version: 1.4.21+ds-2

$ npm config get prefix

$ cat /usr/share/npm/npmrc
# DO NOT MODIFY THIS FILE - use /etc/npmrc instead.

$ node -e 'console.log(process.config.variables.node_prefix);'


Ivan Sergio Borgonovo

Pkg-javascript-devel mailing list

Reply via email to