Cannot find module 'nopt'

1,199 views
Skip to first unread message

Marco De Nadai

unread,
Oct 2, 2014, 3:51:47 PM10/2/14
to mitr...@googlegroups.com
Hello,
I tried to follow this https://github.com/mitro-co/mitro/tree/master/browser-ext but I end up with

make
kzjs_srouces
= ../api/build/node/lib/node_modules/keyczarjs/*.js
forge_srouces = ../api/build/node/lib/node_modules/keyczarjs/node_modules/node-forge/js/*.js
/Users/denadai2/Documents/mitro/browser-ext/login/build/chrome/release/js/acl-entry-template.js
/Users/denadai2/Documents/mitro/browser-ext/login/frontend/gen-files/js/add-acl-template.js

module.js:340
    throw err;
          ^
Error: Cannot find module 'nopt'
    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> (/Users/denadai2/Documents/mitro/browser-ext/third_party/hogan.js/bin/hulk:22:14)
    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 Function.Module.runMain (module.js:497:10)
make: *** [/Users/denadai2/Documents/mitro/browser-ext/login/frontend/gen-files/js/add-acl-template.js] Error 8


Why?
I even tried npm install -g nopt, npm link nopt etc

Evan Jones

unread,
Oct 6, 2014, 10:51:47 AM10/6/14
to Marco De Nadai, mitr...@googlegroups.com
Hm... I committed a change that fixed this issue for me, but that was a while ago. Does your version of the Mitro code have this fix? If you ran the setup script before this, you will probably need to run it again to get it to install the nopt module.



IF that helps, or you figure out the problem, let me know. I'm happy to merge fixes.

Evan



--
You received this message because you are subscribed to the Google Groups "Mitro developers list" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mitro-dev+...@googlegroups.com.
To post to this group, send email to mitr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mitro-dev/4725fc8f-849b-4a72-9d31-8cf6fe4a0a98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages