1
玲反應母語,我得到以下錯誤(在Windows上)陣營本地安裝錯誤
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]
我已經安裝了Windows的SDK,增加了C++工具到我的VS 2015年安裝的,安裝Android的工作室,JAVA等等
有什麼辦法可以解決這個問題嗎?
這也爲我工作的更新的版本號之後。我簡化了更新node-gyp的步驟。只針對你想要的版本。例如,「npm install [email protected]」(在\ Program Files \ nodejs \ node_modules \ npm目錄中)可以讓您跳過編輯package.json。你會看到「 - [email protected]無效」,但「無效」僅表示該版本不是package.json中要求的版本。 – James