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

Installation fails on node version 21.1.0 #178

Open
yashgt opened this issue Jan 1, 2025 · 2 comments
Open

Installation fails on node version 21.1.0 #178

yashgt opened this issue Jan 1, 2025 · 2 comments

Comments

@yashgt
Copy link

yashgt commented Jan 1, 2025

The installation worked using npm install -g on the latest version of node.

However on node version 21.1.0 on Windows, it fails with the following error:
npm ERR! code 1
npm ERR! path C:\Users\yash_ganthe\AppData\Roaming\npm\node_modules\gtfs-to-html\node_modules\better-sqlite3
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c prebuild-install || node-gyp rebuild --release
npm ERR! prebuild-install warn install unable to get local issuer certificate
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.4.0
npm ERR! gyp info using node@21.1.0 | win32 | x64
npm ERR! gyp info find Python using Python version 3.12.3 found at "C:\Program Files\Python312\python.exe"
npm ERR! gyp ERR! find VS
npm ERR! gyp ERR! find VS msvs_version not set from command line or npm config
npm ERR! gyp ERR! find VS VCINSTALLDIR not set, not running in VS Command Prompt

Are there any pre-requisites for the installation to succeed?

@yashgt
Copy link
Author

yashgt commented Jan 1, 2025

It fails even on Linux with similar error even with latest version of nodejs

@brendannee
Copy link
Member

Thanks for sharing this.

Can you see if any of the solutions listed here https://stackoverflow.com/questions/36494336/npm-install-error-unable-to-get-local-issuer-certificate work for you?

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

2 participants