admin管理员组

文章数量:1388835

OK, so I installed nodeJS and I am using WAMP. I go to CMD and type node. It works. Here's my problem:

As you can see, it it does not.. when I try to test hello.js. I am a plete newb... please help me out here?

However, I do know PHP and JavaScript... but it's just that nodeJS is... not so nice.

OK, so I installed nodeJS and I am using WAMP. I go to CMD and type node. It works. Here's my problem:

As you can see, it it does not.. when I try to test hello.js. I am a plete newb... please help me out here?

However, I do know PHP and JavaScript... but it's just that nodeJS is... not so nice.

Share Improve this question asked Jan 27, 2012 at 0:43 testtest 18.2k67 gold badges173 silver badges245 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 5

you trying to start hello.js from node REPL (read-evaluate-print console ). Just exit from REPL (double ctrl+c) and type in shell mand prompt "node hello.js"

Looks like you're copying the mands verbatim, including the (Unix) shell prompt. Try ctrl-d or ctrl-z then enter to get out the Node kand line interface and return to cmd.exe and try your mand again.

本文标签: phpBeginner at nodeJS using WAMPStack Overflow