I recently installed node.js, npm and express package on my Linux instance 
on AWS.  I am trying to create a simple Hello World app using Express 
framework.  Also, when I try to check Express version with the command "*npm 
info express version*" it throws some warning.  Can anyone tell what am I 
doing wrong?

[ec2-user@ip-xx-xxx-xx-xxx exp]$ ls
app.js  node_modules  package.json  public  routes  views

[ec2-user@ip-xx-xxx-xx-xxx exp]$ node app.js

/home/ec2-user/app/exp/app.js:1
,/**, * Module d
^

node.js:201
        throw e; // process.nextTick error, or 'error' event on first tick
              ^
SyntaxError: Unexpected token ,
    at Module._compile (module.js:427:25)
    at Object..js (module.js:450:10)
    at Module.load (module.js:351:31)
    at Function._load (module.js:310:12)
    at Array.0 (module.js:470:10)
    at EventEmitter._tickCallback (node.js:192:40)

[ec2-user@ip-xx-xxx-xx-xxx exp]$ node -v
v0.6.8

[ec2-user@ip-xx-xxx-xx-xxx exp]$ npm info express version
npm WARN [email protected] package.json: 'modules' object is deprecated
npm WARN [email protected] package.json: 'modules' object is deprecated
npm WARN [email protected] package.json: 'modules' object is deprecated
npm WARN [email protected] package.json: 'modules' object is deprecated
3.1.1

[ec2-user@ip-xx-xxx-xx-xxx exp]$

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to