mikeal / node.couchapp.js

Utility for writing couchapps.
Apache License 2.0
406 stars 78 forks source link

Update bin.js #80

Closed derrickoswald closed 10 years ago

derrickoswald commented 10 years ago

To cure this problem:

$ couchapp

/usr/lib/node_modules/couchapp/bin.js:64 return _isUsingDirectoryConfig = (process.argv[2].trim() === "-dc"); ^ TypeError: Cannot call method 'trim' of undefined at isUsingDirectoryConfig (/usr/lib/node_modules/couchapp/bin.js:64:53) at Object. (/usr/lib/node_modules/couchapp/bin.js:81:7) 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) at startup (node.js:119:16) at node.js:901:3

change line 64 to check for any argv[2]:

return _isUsingDirectoryConfig = (process.argv[2] && (process.argv[2].trim() === "-dc"));

59023g commented 10 years ago

Thank you for isolating the issue. How does one 'Update bin.js'?

59023g commented 10 years ago

Ha I figured it out. Worked perfect. Thanks. Didn't realize commit was a link....