Am I going mad, or is there a bug that means node is no longer searching the global library directory by default?

I'm now tried the builds in the F20 base repo, the updates repo and the updates-testing repo, and the all seem to have the same problem - when I try and require a module that is in /usr/lib/node_modules strace shows it doing the following search:

> require('mocha')
open("/home/tom/repl/node_modules/mocha/package.json", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/tom/node_modules/mocha/package.json", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/node_modules/mocha/package.json", O_RDONLY) = -1 ENOENT (No such file or directory) open("/node_modules/mocha/package.json", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/tom/.node_modules/mocha/package.json", O_RDONLY) = -1 ENOENT (No such file or directory) open("/home/tom/.node_libraries/mocha/package.json", O_RDONLY) = -1 ENOENT (No such file or directory) open("/usr/lib/node/mocha/package.json", O_RDONLY) = -1 ENOENT (No such file or directory)
Error: Cannot find module 'mocha'

I assume the last one is the problem - it seems to be searching in /usr/lib/node instead of /usr/lib/node_modules?

Tom

--
Tom Hughes ([email protected])
http://compton.nu/
_______________________________________________
nodejs mailing list
[email protected]
https://admin.fedoraproject.org/mailman/listinfo/nodejs

Reply via email to