The "reg.exe" path is not set in the script code of node-gpy. As shown in the code, node-gpy queries the Windows registry by calling "reg.exe". The last line of the statement is the error code. Var cmd = 'reg query "HKLM\\Software\\Microsoft\\MSBuild\\ToolsVersions" /s' Do you have Microsoft Visual Studio C 2008 installed?') Var notfoundErr = new Error('Can\'t find "msbuild.exe". Log.verbose('could not find "msbuild.exe" in PATH - finding location in registry') The script code of node-gpy to query the Windows registry is atĬ:\Users\abc\AppData\Roaming\npm\node_modules\node-gyp\lib\build.js One of the reasons for the above operation error is an error in node-gpy querying the Windows registry. When searching for "msbuild.exe", node-gpy obtains the installation path of "msbuild.exe" by querying the Windows registry and extracting the Visual Studio C version number. Do you have Mircrosoft Visual Studio C 2008 instlled? Sometimes although Visual Studio installation and operation are normal, you will still encounter the error message that "msbuild.exe" cannot be found when calling node-gyp:Įrror: Can't find "msbuild.exe". When compiling Node.js C native extension using node-gpy in Windows, you need to use "msbuild.exe" of Visual Studio C .
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |