Package: nodejs
Version: 0.10.29~dfsg-1.1

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

$NODE_PATH is not set in debian package but that's what I've been told:
https://github.com/nodesource/distributions/issues/50

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:
http://nodejs.org/api/modules.html
https://docs.npmjs.com/misc/config

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

$ npm config get prefix
/usr/local

$ cat /usr/share/npm/npmrc
# DO NOT MODIFY THIS FILE - use /etc/npmrc instead.
globalconfig=/etc/npmrc
globalignorefile=/etc/npmignore
prefix=/usr/local

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

thanks

-- 
Ivan Sergio Borgonovo
http://www.webthatworks.it


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to