FAQ
node -e "console.log('hello world')"


On Monday, December 29, 2014 2:12:56 AM UTC-5, noderiety wrote:

Hello, I just finished installing nodejs on ubuntu. I wanted to do a
simple Hello World to get started so I executed the following at the
command prompt:

node console.log('hello world')

However, this returns the following error:

-bash: syntax error near unexpected token '('

Any idea what might be causing this issue and how to fix?
--
Job board: http://jobs.nodejs.org/
New group rules: https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 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 unsubscribe from this group and stop receiving emails from it, send an email to nodejs+unsubscribe@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodejs/5e672cf4-cbf4-4bec-9604-f386835087ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Search Discussions

Discussion Posts

Previous

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 5 of 5 | next ›
Discussion Overview
groupnodejs @
categoriesnodejs
postedDec 29, '14 at 3:01p
activeDec 30, '14 at 3:08p
posts5
users4
websitenodejs.org
irc#node.js

People

Translate

site design / logo © 2021 Grokbase