Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run hatjitsu using README instructions #8

Open
smyrman opened this issue Feb 16, 2015 · 4 comments
Open

Can't run hatjitsu using README instructions #8

smyrman opened this issue Feb 16, 2015 · 4 comments

Comments

@smyrman
Copy link

smyrman commented Feb 16, 2015

First installed npm & nodejs. Latest try was with:

% node -v
v0.12.0
% npm -v
2.5.1

Try 1 (from Git root):

npm install -d
node app

Result 1:

module.js:338
    throw err;
          ^
Error: Cannot find module '/work/hatjit/Hatjitsu/app'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:278:25)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

Try 2 (from Git root):

npm install -d
npm start

Result 2:

sh: 1: server.js: not found

npm ERR! Linux 3.8.0-44-generic
npm ERR! argv "/work/hatjit/node-v0.12.0-linux-x64/bin/node" "/work/hatjit/node-v0.12.0-linux-x64/bin/npm" "start"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `server.js`
npm ERR! Exit status 127
npm ERR! 
npm ERR! Failed at the [email protected] start script 'server.js'.
npm ERR! This is most likely a problem with the hatchetapp.net package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     server.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls hatchetapp.net
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /work/hatjit/Hatjitsu/npm-debug.log

The later error is very weird, because server.js clearly exists in the PWD...

Log file from npm-start:

0 info it worked if it ends with ok
1 verbose cli [ '/work/hatjit/node-v0.12.0-linux-x64/bin/node',
1 verbose cli   '/work/hatjit/node-v0.12.0-linux-x64/bin/npm',
1 verbose cli   'start',
1 verbose cli   '/work/hatjit/Hatjitsu' ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ 'prestart', 'start', 'poststart' ]
5 info prestart [email protected]
6 info start [email protected]
7 verbose unsafe-perm in lifecycle true
8 info [email protected] Failed to exec start script
9 verbose stack Error: [email protected] start: `server.js /work/hatjit/Hatjitsu`
9 verbose stack Exit status 127
9 verbose stack     at EventEmitter.<anonymous> (/work/hatjit/node-v0.12.0-linux-x64/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)
9 verbose stack     at EventEmitter.emit (events.js:110:17)
9 verbose stack     at ChildProcess.<anonymous> (/work/hatjit/node-v0.12.0-linux-x64/lib/node_modules/npm/lib/utils/spawn.js:14:12)
9 verbose stack     at ChildProcess.emit (events.js:110:17)
9 verbose stack     at maybeClose (child_process.js:1008:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1080:5)
10 verbose pkgid [email protected]
11 verbose cwd /work/hatjit/Hatjitsu
12 error Linux 3.8.0-44-generic
13 error argv "/work/hatjit/node-v0.12.0-linux-x64/bin/node" "/work/hatjit/node-v0.12.0-linux-x64/bin/npm" "start" "/work/hatjit/Hatjitsu"
14 error node v0.12.0
15 error npm  v2.5.1
16 error code ELIFECYCLE
17 error [email protected] start: `server.js /work/hatjit/Hatjitsu`
17 error Exit status 127
18 error Failed at the [email protected] start script 'server.js /work/hatjit/Hatjitsu'.
18 error This is most likely a problem with the hatchetapp.net package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     server.js /work/hatjit/Hatjitsu
18 error You can get their info via:
18 error     npm owner ls hatchetapp.net
18 error There is likely additional logging output above.
19 verbose exit [ 1, true ]

Also, http://hat.jit.su/ seems to be down.

@smyrman
Copy link
Author

smyrman commented Feb 16, 2015

This seems to be solved by:
d48@2051697

@d48
Copy link

d48 commented Feb 18, 2015

@smyrman yeah, the commands just needed some updating. you can run it like using the npm convention how I have it in the pull request or straight with node server.js

@ljharb
Copy link

ljharb commented Apr 1, 2015

In addition to node app not making any sense when you have an app directory and not app.js, your start script is also broken. It should be node server.js not just server.js.

After this is fixed, the README should tell people to do npm start.

@d48
Copy link

d48 commented Apr 1, 2015

here you go: #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants