2013-01-19 2 views
2

NodeJS에 websocket 모듈을 설치하려고하면 다음 오류가 발생합니다. 나는 우분투 12.04 머신을 사용하고있다.nmj를 통해 NodeJS에 WebSocket 모듈을 설치하려고 할 때 오류가 발생했습니다.

[email protected]:/var/www$ npm install websocket 
npm http GET https://registry.npmjs.org/websocket 
npm http 304 https://registry.npmjs.org/websocket 

> [email protected] install /var/www/node_modules/websocket 
> node install.js 

[websocket v1.0.8] Attempting to compile native extensions. 
[websocket v1.0.8] 
Native code compile failed!! 
Please note that this module DOES NOT REQUIRE the native components 
and will still work without them, though not quite as efficiently. 

On Windows, native extensions require Visual Studio and Python. 
On Unix, native extensions require Python, make and a C++ compiler. 
Start npm with --websocket:verbose to show compilation output (if any). 
[email protected] node_modules/websocket 

내가 websocket 모듈을 설치하는 데 사용되는 명령은 npm install websocket입니다. 누군가가 잘못되어 가고 있다고 조언 할 수 있습니까?

+2

./var/www/node_modules/websocket 폴더를 확인 했습니까? 나에게 잘 설치되어있는 것처럼 보이지만, 비 호환성 때문에 네이티브 확장을 추가 할 수 없습니다. – Ari

답변

0

python과 make가 설치되어 있는지 확인하십시오. 우분투에서는이 작업을 수행하지 않았지만 Windows7에서는 같은 오류가 나타납니다. 이 post이 도움이됩니다. 나는 npm으로 설치하려고했는데 [email protected]을 설치했다.

관련 문제