Hi,

This still occurs for me. I have a armhf chroot of Sid. It seems to be
using a node path relative to the current directory (as far as I can
tell). These paths should probably be /usr prefixed (and not relative to
cwd), but I wouldn't know where to begin fixing this.

See my tests below:

root@sid-armhf:/# node -p "require.resolve.paths('y18n')"

[ '/node_modules',
  '/root/.node_modules',
  '/root/.node_libraries',
  '/lib/arm-linux-gnueabihf/nodejs',
  '/share/nodejs',
  '/lib/nodejs' ]
root@sid-armhf:/# su user
$ pwd
/
$ node -p "require.resolve.paths('y18n')"

[ '/node_modules',
  '/home/user/.node_modules',
  '/home/user/.node_libraries',
  '/lib/arm-linux-gnueabihf/nodejs',
  '/share/nodejs',
  '/lib/nodejs' ]
$ cd
$ pwd
/home/user
$ node -p "require.resolve.paths('y18n')"

[ '/home/user/node_modules',
  '/home/node_modules',
  '/node_modules',
  '/home/user/.node_modules',
  '/home/user/.node_libraries',
  '/home/lib/arm-linux-gnueabihf/nodejs',
  '/home/share/nodejs',
  '/home/lib/nodejs' ]
$

-- 
Josh

Reply via email to