[Pkg-javascript-devel] Resolving "pure" javascript libraries from NodeJS
David Paleino
dapal at debian.org
Sun Nov 6 21:03:33 UTC 2011
Hello people,
I'm still struggling in packaging a NodeJS application I particularly like,
TileMill :)
It seems like the package is asking for "wax", which is a
pure-javascript library, to be used from a web browser, even though it is
available from npmjs.org. I packaged (correctly, I hope) libjs-wax, but this
code horribly fails in Node:
> require.resolve('wax/wax.mm.min.js')
Error: Cannot find module 'wax/wax.mm.min.js'
at Function._resolveFilename (module.js:326:11)
at Function.resolve (module.js:359:19)
at [object Context]:1:9
at Interface.<anonymous> (repl.js:179:22)
at Interface.emit (events.js:64:17)
at Interface._onLine (readline.js:153:10)
at Interface._line (readline.js:408:8)
at Interface._ttyWrite (readline.js:585:14)
at ReadStream.<anonymous> (readline.js:73:12)
at ReadStream.emit (events.js:81:20)
(the exact code is at [0], it would need to be patched to reflect the paths in
the libjs-wax package).
libjs-wax is installed, and said file is in the "correct" location:
$ dpkg -L libjs-wax | grep mm.min
/usr/share/javascript/wax/wax.mm.min.js
$
I don't have the slightest idea how to make NodeJS see that file, and I'm
absolutely no "bones" expert to understand why it needs it from Node :)
Do you have any hint for me?
Thank you very much,
David
[0]: https://github.com/mapbox/tilemill/blob/master/servers/Route.bones#L15
--
. ''`. Debian developer | http://wiki.debian.org/DavidPaleino
: :' : Linuxer #334216 --|-- http://www.hanskalabs.net/
`. `'` GPG: 1392B174 ----|---- http://deb.li/dapal
`- 2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20111106/6a66ecf5/attachment.pgp>
More information about the Pkg-javascript-devel
mailing list