[ https://issues.apache.org/jira/browse/CB-5343?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13819272#comment-13819272 ]
Josh Soref commented on CB-5343: -------------------------------- https://github.com/apache/cordova-cli/pull/77 > Tell people to run npm install when requirements are missing > ------------------------------------------------------------ > > Key: CB-5343 > URL: https://issues.apache.org/jira/browse/CB-5343 > Project: Apache Cordova > Issue Type: Bug > Components: CLI > Affects Versions: 3.1.0 > Reporter: Josh Soref > Assignee: Josh Soref > Priority: Minor > > If you run clone cordova-cli and then try running bin/cordova today, you get: > module.js:340 > throw err; > ^ > Error: Cannot find module 'optimist' > 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 new CLI (/Users/jsoref/Cordova/cordova-cli/src/cli.js:21:21) > at Object.<anonymous> > (/Users/jsoref/Cordova/cordova-cli/bin/cordova:41:16) > 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) > which is rather unhelpful.... -- This message was sent by Atlassian JIRA (v6.1#6144)