0
나는이 지침 (
http://nodenode.com/post/1197688151/installing-node-js-on-ubuntu-screencast-tutorial)
에 따라 우분투에 Node.js를 설치를하고있어 내가 입력
마지막 단계에 다음과 같은 오류가 잡있어
는 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'가 필요합니다. 내가 틀린 일을하고있는 건가 ... 아님, 바보 같습니까?
때때로 인생은 너무 간단합니다. 그 자리에 고마워! Annoyingly 나는 단지 블로그에서 코드를 복사했다. 그게 날 죽인거야! – Joseph
그냥 시간 제한을 기다리는 – Joseph
대답 후 3 년 이상 ... 그것은 여전히 누군가의 생명을 구하기 위해 계속됩니다 : P는 해답을 주셔서 감사합니다 :) – rajugaadu