Some problems with "...\msbuild.exe` failed with exit code: 1"
See original GitHub issueC:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\src\win_delay_load_hook.c(34): error C2373: ‘__pfnDliNotifyHook2’: redefinition; different type modifiers [C:\Users\Nagibator\WebstormProjects\DotaItems\node_modules\nodejieba\build\nodejieba.vcxproj]
C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\delayimp.h(134): note: see declaration of ‘__pfnDliNotifyHook2’
gyp ERR! build error
gyp ERR! stack Error: C:\Program Files (x86)\MSBuild\14.0\bin\msbuild.exe
failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\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:204:12)
gyp ERR! System Windows_NT 6.1.7601
gyp ERR! command “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js” “rebuild”
gyp ERR! cwd C:\Users\Nagibator\WebstormProjects\DotaItems\node_modules\nodejieba
gyp ERR! node -v v6.2.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// I want to know what does it mean and how fix it? Anyway mern-starter continue install and finish with //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
npm WARN optional Skipping failed optional dependency /chokidar/fsevents: npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.12 npm WARN babel-plugin-webpack-loaders@0.7.0 requires a peer of webpack@>=1.12.9 ❤️.0.0 but none was installed. npm WARN chunk-manifest-webpack-plugin@0.1.0 requires a peer of webpack@^1.4.0-beta6 but none was installed. npm WARN extract-text-webpack-plugin@1.0.1 requires a peer of webpack@^1.9.11 but none was installed.
Issue Analytics
- State:
- Created 7 years ago
- Comments:11
This error is fixed in node-gyp v3.4.0, you are still using node-gyp v3.3.1
npm uninstall -g node-gyp npm install -g node-gyp
This will install the lastest version
Delete package-lock.json
Uninstall and reInstall node-gyp globally as pabhale2 suggested