2016-07-07 2 views
1

링 반응 네이티브 내가반작용 네이티브는 오류

내가 윈도우 SDK를 설치 한
C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(31): 
error C2373: '__pfnDliNotifyHook2': redefinition; different type modifiers 
[C:\Projects\JustEatLife\node_modules\react-native\node_modules\ws 
\node_modules\bufferutil\build\bufferutil.vcxproj] 

, 내 VS 2015 설치에 C++ 도구를 추가 (Windows의 경우) 다음과 같은 오류가 설치 안드로이드 스튜디오, 자바 설치

해결 방법이 있습니까?

답변

1

나는 동일한 문제가있어, 나를 위해 대답은 node-gyb를 버전 3.3.1에서 3.4.0을 npm으로 업데이트하는 것이었다. 그것을 수행하는 방법 지침

은 다음을 참조하십시오 npm i 실패

npm install fails with error C2373 with vs2015 update 3

경우 packages.json이 또한 나를 위해 일한

+0

에 버전 번호를 업데이트 한 후, npm install node-gyp을 시도합니다. 노드 -gyp 업데이트 단계를 단순화했습니다. 원하는 버전 만 지정하면됩니다. 예를 들어 "npm install [email protected]"(\ Program Files \ nodejs \ node_modules \ npm 디렉토리)에서 package.json 편집을 건너 뛸 수 있습니다. "- [email protected] invalid"가 표시되지만 "invalid"는 package.json에서 요청한 버전이 아님을 나타냅니다. – James