[Pkg-javascript-devel] Bug#932659: node: modules are not getting detected in a fresh sid chroot environment

Josh de Kock josh at itanimul.li
Tue Mar 17 13:44:17 GMT 2020


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 at 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 at 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



More information about the Pkg-javascript-devel mailing list