我正在按照这些说明在 Ubuntu 上安装 node.js ( http://nodenode.com/post/1197688151/installing-node-js-on-ubuntu-screencast-tutorial )
我在最后一步收到以下错误
我打字node hello_node.js
我的终端回复
/home/joe/tmp/hello_node/hello_node.js:1
require(‘http’);
^
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token ILLEGAL
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)
所以,看来我“需要”http。我做错了什么......或者更糟,愚蠢?