Rob-- / memoryjs

Read and write process memory in Node.js (Windows API functions exposed via Node bindings)
MIT License
632 stars 86 forks source link

Install error: The build tools for v141 (Platform Toolset = 'v141') cannot be found. #81

Closed jerbear2008 closed 2 years ago

jerbear2008 commented 3 years ago

I am having the same issue as in #77, and his fix does not work. When running the suggested command, I get the same error as windows-build-tools/208, and nothing gets installed. This is the main error:

C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\v140\Microsoft.Cpp.Platform.targets(57,5): error MSB8020: The build t
ools for v141 (Platform Toolset = 'v141') cannot be found. To build using the v141 build tools, please install v141 bui
ld tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-cli
ck the solution, and then selecting "Retarget solution". [D:\node\Among Us\node_modules\memoryjs\build\memoryjs.vcxproj
]
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe` failed with exit code: 1

Full log

These are the Visual Studio and C++ programs I have installed: image

If it helps, I am trying to use CantRunRiver/Ponyo's among.js package (not among-js, which I am considering switching to). He had a repo for it, but it was recently deleted. I had forked it and added the actual code to it however, at jerbear2008/among.js.

jerbear2008 commented 3 years ago

Actually, this appears to be a node-gyp error.

jerbear2008 commented 3 years ago

I have a workaround by copying the folder from another project where this compiled and installed successfully to my node-modules folder, and it works. memoryjs.zip

Rob-- commented 2 years ago

Closing as it seems unrelated to the project, thanks for commenting your solution