SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Oct 2010
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ch.1 Hello World issue

    I am on OSX and installed node from the website.

    When I tried running basic
    Code:
    console.log('Hello World')
    it's giving me following error.
    Code:
    -bash: syntax error near unexpected token `'Hello world''
    Please let me know how do I proceed.

    I tried re-installing node from https://github.com/joyent/node/wiki/installation and if I try to check version of node or npm, I can see them.

  2. #2
    SitePoint Member
    Join Date
    Sep 2013
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Seconded! I'm encountering the same error as aniruddhabara!

    Thanks in advice for the help.

  3. #3
    SitePoint Member
    Join Date
    Dec 2010
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    you need to start REPL by typing node at the prompt first.


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •