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

+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
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。