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

I am not able to install using npm #82

Open
lucky-9 opened this issue May 10, 2023 · 7 comments
Open

I am not able to install using npm #82

lucky-9 opened this issue May 10, 2023 · 7 comments

Comments

@lucky-9
Copy link

lucky-9 commented May 10, 2023

Getting an installation issue while trying to install with npm.
image

@yoshoku
Copy link
Owner

yoshoku commented May 11, 2023

@lucky-9 As indicated in the error message, to install node-gyp on which hnsw-node depends, you need to install the build tools: https://github.com/nodejs/node-gyp#on-windows

npm ERR! gyp ERR! find VS **************************************************************
npm ERR! gyp ERR! find VS You need to install the latest version of Visual Studio
npm ERR! gyp ERR! find VS including the "Desktop development with C++" workload.
npm ERR! gyp ERR! find VS For more information consult the documentation at:
npm ERR! gyp ERR! find VS https://github.com/nodejs/node-gyp#on-windows
npm ERR! gyp ERR! find VS **************************************************************

@jaymehta-ce
Copy link

I'm also getting the same issue.
image

@obaidmuneer
Copy link

I'm also getting the same issue. image

@jaymehta-ce install visual studio build tool with c++ env as @yoshoku mentioned the size will be around 4 to 6 gb i think

@jaymehta-ce
Copy link

Already installed but still getting the same error. Are there any specific node version required?

@lucky-9
Copy link
Author

lucky-9 commented May 22, 2023

Installed the tools, still facing the issue.

@yoshoku
Copy link
Owner

yoshoku commented May 22, 2023

@lucky-9 @jaymehta-ce
I do not have a Windows PC so I do not know, but the node-gyp documentation says you also need to install Python from the Microsoft Store package, and if that does not work, further reference documentation is shown:
https://github.com/Microsoft/nodejs-guidelines/blob/master/windows-environment.md#compiling-native-addon-modules

This is not an hnsw-node issue, but a node-gyp issue, so please ask in a node-gyp repository or on stack overflow.

@Lukem121
Copy link

Lukem121 commented Sep 2, 2023

Think I figured it out, you need to install Visual Studio.

https://visualstudio.microsoft.com/downloads/

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

5 participants