Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerequisites for installing / building under Windows 10 #7

Open
LGA opened this issue Oct 7, 2021 · 0 comments
Open

Prerequisites for installing / building under Windows 10 #7

LGA opened this issue Oct 7, 2021 · 0 comments

Comments

@LGA
Copy link

LGA commented Oct 7, 2021

When trying to install under Windows I got stuck several times. There seem to be unmet dependencies around Visual Studio, Microsoft Build Tools and node-gyp. However, I could not set up my local environment to successfully run the build.

What I did so far:

  • Installed CMake
  • Installed windows build tools
    • npm install --global --production windows-build-tools

Windows build tools got stuck on the loading of Python 2.7.15
[ https://github.com/felixrieseberg/windows-build-tools/issues/147 ]

After that I removed previously installed Python 2.7 and the node_modules folder from the project. But the build tools got stuck again after completing the python install.

When trying to run the install at this point it gave me:
MSB4019: The imported project "C:\Microsoft.Cpp.Default.props" was not found. Confirm that the path in the <Import> declaration is correct, and that the file exists on disk.
[ https://stackoverflow.com/questions/41695251/c-microsoft-cpp-default-props-was-not-found ]

Went ahead and installed Visual Studio 2019 CE (only C++ Packages for Desktop Applications)

  • Set the msvs_version for node
    • npm config set msvs_version 2019

After that the installation was running for a while, until it hit the following:

node-native-ocr>if not defined npm_config_node_gyp (node "C:\Users\loco\AppData\Roaming\nvm\v11.15.0\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Users\loco\AppData\Roaming\nvm\v11.15.0\node_modules\npm\node_modules\node-gyp\bin\node-gyp.js" rebuild ) gyp ERR! UNCAUGHT EXCEPTION gyp ERR! stack Error: spawn C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\15.0\Bin\MSBuild.exe ENOENT gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:247:19) gyp ERR! stack at onErrorNT (internal/child_process.js:429:16) gyp ERR! stack at processTicksAndRejections (internal/process/task_queues.js:81:17) gyp ERR! System Windows_NT 10.0.19043 gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\loco\\AppData\\Roaming\\nvm\\v11.15.0\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp ERR! cwd c:\Repos\repeato-studio\node_modules\node-native-ocr gyp ERR! node -v v11.15.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! This is a bug in node-gyp. gyp ERR! Try to update node-gyp and file an Issue if it does not help:

Uninstalling node-gyp manually and restarting the process resulted in the same outcome again.

As stated before, I don't fully understand what kind of requirements / dependencies the installation needs. Any hint is greatly appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant