Node-gyp: Error: `C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin\MSBuild.exe` failed with exit code: 1

Created on 30 Sep 2019  Â·  7Comments  Â·  Source: nodejs/node-gyp

Windows PowerShell run "npm install --build-from-source"
An error occurred, as shown below

image

Most helpful comment

I solved this problem by performing "npm install --global --production windows-build-tools" on Win10 without visual studio installed, which I think has something to do with installing vs2019。

But before I installed another vs2019 win10 on a long time to solve this problem, because there is no record halfway I also forgot my specific operation steps

All 7 comments

+1

@GanZhiXiong it looks like node-gyp is working well, the error comes from Visual Studio. Please try the solutions listed in https://docs.microsoft.com/en-us/cpp/error-messages/tool-errors/linker-tools-error-lnk1106?view=vs-2019

I'll close this issue since it does not appear to be a node-gyp issue, but feel free to provide more information if you believe otherwise. If this keeps being an issue for you, please make sure you follow all the instructions in https://github.com/node-hid/node-hid and report the issue there.

I solved this problem by performing "npm install --global --production windows-build-tools" on Win10 without visual studio installed, which I think has something to do with installing vs2019。

But before I installed another vs2019 win10 on a long time to solve this problem, because there is no record halfway I also forgot my specific operation steps

node.lib in windows has bug
i delete node.lib and download node.lib from web
and work fine

@boystray

node.lib in windows has bug
i delete node.lib and download node.lib from web
and work fine

Please explain, as I'm having the same issue.

I solved this problem by performing "npm install --global --production windows-build-tools" on Win10 without visual studio installed, which I think has something to do with installing vs2019。

But before I installed another vs2019 win10 on a long time to solve this problem, because there is no record halfway I also forgot my specific operation steps

Before we must open console with adminitrator privilege

I solved this problem by performing "npm install --global --production windows-build-tools" on Win10 without visual studio installed, which I think has something to do with installing vs2019。

But before I installed another vs2019 win10 on a long time to solve this problem, because there is no record halfway I also forgot my specific operation steps

GOD

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jlchereau picture jlchereau  Â·  3Comments

chen4393 picture chen4393  Â·  3Comments

lopezdp picture lopezdp  Â·  3Comments

swaj picture swaj  Â·  3Comments

adrianescat picture adrianescat  Â·  3Comments