question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Some problems with "...\msbuild.exe` failed with exit code: 1"

See original GitHub issue

C:\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:closed
  • Created 7 years ago
  • Comments:11

github_iconTop GitHub Comments

17reactions
rodeyseijkenscommented, Jul 3, 2016

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

6reactions
navmedcommented, Sep 3, 2018
  1. Zap node-modules. I use:
rd /s /q node_modules
  1. Delete package-lock.json

  2. Uninstall and reInstall node-gyp globally as pabhale2 suggested

npm uninstall -g node-gyp
npm install -g node-gyp
  1. Run npm install now, it should work.
Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM fails on msbuild.exe with exit code 1 #119 - GitHub
The real problem of this issue is variable setup , the "VCTargetsPath" 's variable was difference between window server and window 10. If...
Read more >
Node-gyp. MSBuild.exe` failed with exit code: 1 - Stack Overflow
It sounds like build tools are not installed, You have to install the build tools for Windows. npm install --global windows-build-tools.
Read more >
Fix Node MSBuild Exit code 1 | Workaround guide - YouTube
Want to install something using npm, but can't because of an annoying MSBuild error code ? Well, this video has a permanent solution...
Read more >
msbuild.exe failed with exit code 1 - Google Groups
I'm on windows 8.1 and I get an error when installing node-red. gyp ERR! stack Error: 'c:\Program Files (x86)\msbuild\12.0\bin\msbuild.exe failed with exit ......
Read more >
Error 'msbuild.exe' exited with code '1' is only reported, while ...
The build fails with only reporting one error: Process 'msbuild.exe' exited with code '1'. (also only one warning is reported).
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found