jutebag icon indicating copy to clipboard operation
jutebag copied to clipboard

jb init crashes

Open frankgerhardt opened this issue 11 years ago • 6 comments

I followed the instructions but I get an error when running jb init. I'm using Ubunt 12.04 with the latest node.

:~$ sudo npm install -g jutebag

[sudo] password for siena: npm http GET https://registry.npmjs.org/jutebag npm http 304 https://registry.npmjs.org/jutebag npm http GET https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/coffee-script npm http GET https://registry.npmjs.org/node-pocket npm http GET https://registry.npmjs.org/underscore npm http 304 https://registry.npmjs.org/underscore npm http 304 https://registry.npmjs.org/node-pocket npm http 304 https://registry.npmjs.org/coffee-script npm http 200 https://registry.npmjs.org/colors npm http GET https://registry.npmjs.org/colors/-/colors-0.6.0-1.tgz npm http 200 https://registry.npmjs.org/colors/-/colors-0.6.0-1.tgz npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/keypress npm http 304 https://registry.npmjs.org/request npm http 200 https://registry.npmjs.org/keypress npm http GET https://registry.npmjs.org/keypress/-/keypress-0.1.0.tgz npm http GET https://registry.npmjs.org/form-data npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/cookie-jar npm http GET https://registry.npmjs.org/aws-sign npm http GET https://registry.npmjs.org/oauth-sign npm http GET https://registry.npmjs.org/forever-agent npm http GET https://registry.npmjs.org/tunnel-agent npm http GET https://registry.npmjs.org/json-stringify-safe npm http GET https://registry.npmjs.org/qs npm http 200 https://registry.npmjs.org/keypress/-/keypress-0.1.0.tgz npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/form-data npm http 304 https://registry.npmjs.org/hawk npm http 304 https://registry.npmjs.org/aws-sign npm http 304 https://registry.npmjs.org/oauth-sign npm http 304 https://registry.npmjs.org/cookie-jar npm WARN package.json [email protected] No README.md file found! npm WARN package.json [email protected] No README.md file found! npm WARN package.json [email protected] No README.md file found! npm http 304 https://registry.npmjs.org/forever-agent npm WARN package.json [email protected] No README.md file found! npm http 304 https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/json-stringify-safe npm WARN package.json [email protected] No README.md file found! npm http 304 https://registry.npmjs.org/qs npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.3","npm":"1.2.17"}) npm http GET https://registry.npmjs.org/combined-stream npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/sntp npm http GET https://registry.npmjs.org/hoek npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/hoek npm http 304 https://registry.npmjs.org/combined-stream npm http 304 https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/delayed-stream/0.0.5 npm http 304 https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/boom npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.3","npm":"1.2.17"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.3","npm":"1.2.17"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.3","npm":"1.2.17"}) npm WARN engine [email protected]: wanted: {"node":"0.8.x"} (current: {"node":"v0.10.3","npm":"1.2.17"}) npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5 /usr/bin/jb -> /usr/lib/node_modules/jutebag/bin/jutebag [email protected] /usr/lib/node_modules/jutebag ├── [email protected] ├── [email protected] ├── [email protected] ├── [email protected] ([email protected]) └── [email protected] ([email protected])

:~$ jb init

/usr/lib/node_modules/jutebag/index.js:47 jutebag.commands.init.exec(); ^ TypeError: Cannot call method 'exec' of undefined at /usr/lib/node_modules/jutebag/index.js:47:31 at Object. (/usr/lib/node_modules/jutebag/index.js:51:3) 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 Module.require (module.js:364:17) at require (module.js:380:17) at Object. (/usr/lib/node_modules/jutebag/bin/jutebag:5:1) 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

frankgerhardt avatar Apr 12 '13 15:04 frankgerhardt

Hey,

thanks for reporting this issue, but I'm not able to reproduce the problem. I also installed a fresh Ubuntu 12.04 in my VM, but, well, it works.

The only difference I see so far is the installation path. In my environment the module was installed into:

/usr/local/lib/node_modules/jutebag/

Do have problems with any other module?

/André

akoenig avatar Apr 12 '13 22:04 akoenig

Exactly same problem here on Mac OS 10.9.1 / npm 1.3.8 / node 0.10.7

palisir avatar Jan 08 '14 08:01 palisir

Reproduced Mac OS 10.9.1 / npm 1.3.24 / node 0.10.25

shedali avatar Feb 19 '14 17:02 shedali

Reproduced on Debian jessie/sid / npm 1.4.4 / node 0.10.26

bartlibert avatar May 19 '14 09:05 bartlibert

This only occurs when ~/.jutebag/config.json does not exist, or in other words, if you haven't already run init.

nilbus avatar Mar 02 '15 02:03 nilbus

I opened pull request #3 to fix this.

nilbus avatar Mar 02 '15 02:03 nilbus