Following Neil Shah guide based on [GUIDE NODE.JS, EXPRESS, JADE][1], I tried to install node.js webserver, but the server does not start...
C:\node\nodetest4>npm start
> nodetest4@0.0.1 start C:\node\nodetest4
> node ./bin/www
C:\node\nodetest4>
It finishes just after launching it!! Any clue?
This is the log file:
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'start' ]
2 info using npm@1.4.9
3 info using node@v0.10.28
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 verbose run-script [ 'prestart', 'start', 'poststart' ]
6 info prestart nodetest3@0.0.1
7 info start nodetest3@0.0.1
8 verbose unsafe-perm in lifecycle true
9 error Error: spawn ENOENT
9 error at errnoException (child_process.js:998:11)
9 error at Process.ChildProcess._handle.onexit (child_process.js:789:34)
10 error If you need help, you may report this *entire* log,
10 error including the npm and node versions, at:
10 error
11 error System Windows_NT 6.1.7601
12 error command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "start"
13 error cwd C:\node\nodetest3
14 error node -v v0.10.28
15 error npm -v 1.4.9
16 error syscall spawn
17 error code ENOENT
18 error errno ENOENT
19 verbose exit [ 1, true ]
... And the config list:
C:\node\nodetest4>npm config list
; cli configs
registry = "
https://registry.npmjs.org/"
user-agent = "npm/1.4.9 node/v0.10.28 win32 x64"
; userconfig C:\Users\u0120878.TEN\.npmrc
proxy = "
http://10.1.56.10:80/"
; builtin config undefined
prefix = "C:\\Users\\u0120878.TEN\\AppData\\Roaming\\npm"
; node bin location = C:\Program Files\nodejs\\node.exe
; cwd = C:\node\nodetest4
; HOME = C:\Users\u0120878.TEN
; 'npm config ls -l' to show all defaults.
thanks in advance...
Lucas
[1]:
http://cwbuecheler.com/web/tutorials/2013/node-express-mongo/