[Pkg-javascript-devel] Bug#747651: Error: Cannot find module 'underscore'

Leo Iannacone l3on at ubuntu.com
Sat May 10 18:44:12 UTC 2014


Package: node-backbone-dirty
Severity: important

Dear Maintainer,

testing your module as:

nodejs -e "require('backbone-dirty');"

It fails and return:


module.js:340
    throw err;
          ^
Error: Cannot find module 'underscore'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at Object.<anonymous> (/usr/lib/nodejs/backbone-dirty.js:7:9)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Module.require (module.js:364:17)


You should set package depends on node-underscore rather than
libjs-underscore.


Regards,

Leo.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-24-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash



More information about the Pkg-javascript-devel mailing list