nodejitsu/jitsu — Issue #158: [flatiron] `jitsu install` throws
Author: jesusabdullah
Created: 2012-02-16 20:21:35+00:00
State: open

Looks like an easy fix.

```
% jitsu install helloworld
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command install helloworld

/home/josh/dev/nodejitsu/jitsu/lib/jitsu/commands/install.js:16
var thisPath = process.cwd();
^^^
info: Welcome to Nodejitsu
info: It worked if it ends with Nodejitsu ok
info: Executing command install helloworld

/home/josh/dev/nodejitsu/jitsu/lib/jitsu/commands/install.js:16
var thisPath = process.cwd();
^^^
{
"process": {
"pid": 21251,
"uid": 1000,
"gid": 1000,
"cwd": "/tmp/hiworld",
"execPath": "/usr/local/bin/node",
"version": "v0.6.10",
"argv": [
"node",
"/usr/local/bin/jitsu",
"install",
"helloworld"
],
"memoryUsage": {
"rss": 34009088,
"heapTotal": 27570624,
"heapUsed": 16189056
}
},
"os": {
"loadavg": [
0.0810546875,
0.22998046875,
0.3076171875
],
"uptime": 492749.995114059
},
"trace": [
{
"column": 25,
"file": "module.js",
"function": "Module._compile",
"line": 429,
"method": "_compile",
"native": false
},
{
"column": 10,
"file": "module.js",
"function": "Object..js",
"line": 459,
"method": ".js",
"native": false
},
{
"column": 31,
"file": "module.js",
"function": "Module.load",
"line": 348,
"method": "load",
"native": false
},
{
"column": 12,
"file": "module.js",
"function": "Function._load",
"line": 308,
"method": "_load",
"native": false
},
{
"column": 17,
"file": "module.js",
"function": "Module.require",
"line": 354,
"method": "require",
"native": false
},
{
"column": 17,
"file": "module.js",
"function": "require",
"line": 370,
"method": null,
"native": false
},
{
"column": 32,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/lib/flatiron/plugins/cli.js",
"function": "loadCommand",
"line": 194,
"method": null,
"native": false
},
{
"column": 12,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/lib/flatiron/plugins/cli.js",
"function": "executeCommand",
"line": 245,
"method": null,
"native": false
},
{
"column": 5,
"file": "/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/lib/flatiron/plugins/cli.js",
"function": "",
"line": 316,
"method": null,
"native": false
},
{
"column": 21,
"file": "Object].dispatch (/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/director/lib/director/cli.js",
"function": "[object",
"line": 50,
"method": null,
"native": false
}
],
"stack": [
"SyntaxError: Unexpected token var",
" at Module._compile (module.js:429:25)",
" at Object..js (module.js:459:10)",
" at Module.load (module.js:348:31)",
" at Function._load (module.js:308:12)",
" at Module.require (module.js:354:17)",
" at require (module.js:370:17)",
" at loadCommand (/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/lib/flatiron/plugins/cli.js:194:32)",
" at executeCommand (/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/lib/flatiron/plugins/cli.js:245:12)",
" at Object. (/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/lib/flatiron/plugins/cli.js:316:5)",
" at [object Object].dispatch (/home/josh/dev/nodejitsu/jitsu/node_modules/flatiron/node_modules/director/lib/director/cli.js:50:21)"
],
"level": "error",
"message": "uncaughtException"
}
```