2016-12-20 3 views
0

JSBin을 로컬로 실행하려면 this page을 팔로우하고 싶습니다.mac에서 "node-gyp rebuild"오류가 발생했습니다.

내 컴퓨터에 xcode 8.2을 방금 설치했습니다. 이제 npm -v3.10.9을 반환합니다. node -vv7.2.1을 반환합니다.

가 가
/Users/softtimur/Startup/WebProjects/jsbin$ npm install 

> [email protected] install /Users/softtimur/Startup/WebProjects/jsbin/node_modules/hashring 
> node-gyp rebuild 

    CXX(target) Release/obj.target/hashvalue/src/hashvalue.o 
In file included from ../src/hashvalue.cc:1: 
../../nan/nan.h:189:68: error: too many arguments to function call, expected at most 2, have 4 
    return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv); 
... 
... 
... 
... 
fatal error: too many errors emitted, stopping now [-ferror-limit=] 
13 warnings and 20 errors generated. 
make: *** [Release/obj.target/hashvalue/src/hashvalue.o] Error 1 
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2 
gyp ERR! stack  at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23) 
gyp ERR! stack  at emitTwo (events.js:106:13) 
gyp ERR! stack  at ChildProcess.emit (events.js:191:7) 
gyp ERR! stack  at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12) 
gyp ERR! System Darwin 16.1.0 
gyp ERR! command "/usr/local/Cellar/node/7.2.1/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" 
gyp ERR! cwd /Users/softtimur/Startup/WebProjects/jsbin/node_modules/hashring 
gyp ERR! node -v v7.2.1 
gyp ERR! node-gyp -v v3.4.0 
gyp ERR! not ok 
npm WARN [email protected] requires a peer of [email protected]>= 1.1.0-beta3 but none was installed. 
npm ERR! Darwin 16.1.0 
npm ERR! argv "/usr/local/Cellar/node/7.2.1/bin/node" "/usr/local/bin/npm" "install" 
npm ERR! node v7.2.1 
npm ERR! npm v3.10.9 
npm ERR! code ELIFECYCLE 

npm ERR! [email protected] install: `node-gyp rebuild` 
npm ERR! Exit status 1 
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node-gyp rebuild'. 
npm ERR! Make sure you have the latest version of node.js and npm installed. 
npm ERR! If you do, this is most likely a problem with the hashring package, 
npm ERR! not with npm itself. 
npm ERR! Tell the author that this fails on your system: 
npm ERR!  node-gyp rebuild 
npm ERR! You can get information on how to open an issue for this project with: 
npm ERR!  npm bugs hashring 
npm ERR! Or if that isn't available, you can get their info via: 
npm ERR!  npm owner ls hashring 
npm ERR! There is likely additional logging output above. 

npm ERR! Please include the following file with any support request: 
npm ERR!  /Users/softtimur/Startup/WebProjects/jsbin/npm-debug.log 

사람이 여기 잘못 알고 있나요 그러나, npm install 오류를 제기?

답변

0

문제는 노드의 최신 버전과 호환되지 않는 hashring v3.0.0 depends on an older version of nan (v1.3.x)입니다. 이 글을 쓰는 시점에서 현재 버전 hashring (v3.2.0)에는 더 이상 addon이 포함되어 있지 않으며 javascript로만 제공됩니다.

hashring 종속성은 jsbinmemcached 종속성이며, 현재는 특정 git commit 해시로 하드 코딩되어 있습니다. 몇 달 전에 a PR to update this dependency이 있었지만 관리자가 노드의 최신 버전을 지원하는 데 분명히 관심이 없었기 때문에 분명히 기각되었습니다. 노드 호환성에 대한 우려를 표명 하시려면 their tracker에 문제를 만들 수 있습니다.

+0

그럼 어떻게해야합니까? 'v3.0.0 '이 아닌'hashring v3.2.0'을 어떻게 사용하게 할 수 있습니까? – SoftTimur

+0

몇 가지 추가 정보로 답변을 업데이트했습니다. – mscdex