-
Notifications
You must be signed in to change notification settings - Fork 23
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
Error 'spawn git ENOENT' while installing types/mysql2 #30
Comments
Just as a heads up, I've tried this on two different setups by now, one was an Amazon EC2 instance running Windows Server and the other was a desktop running Windows 10, both with their own distinct internet connections. Also, for the ones interested, this is the tutorial I've been following and didn't manage to complete: https://www.youtube.com/watch?v=4clEduk6OQM |
Ok, this is more substancial now. I've instead tried to just add the dependency to the package.json of my project and run the command `npm install' instead. Here's my devDependencies:
And then I get the following error for running
Did I make any errors trying to install the package this way? Is there any means to have it manually installed? |
Would it be you have a firewall blocking the connection? I have tried it and it is ok. |
|
I've shut down the firewall (at least for the Amazon instance I'm working at atm), but no luck, same error. |
I've been also attempting to use alternatives to the mysql2 while I'm facing this issue, but I'm also getting the same error while trying to install
Here's the error log saved in my AppData folder:
|
I'm also having trouble installing this module inside of my office. We have firewall rules explicitly preventing direct access to Github. Is there any way to install this through the npm registry instead? |
Fails on my companys CI server:
Would be easier for us if we just could |
Hi, Good day! I'm having the same error: BUT still problem exist upon running 'npm install' command. C:\xampp\htdocs\my-project>npm install Please help. Thank you. |
typings showing version 1.1.1 is available but github authentication is stopping to download this version. version 1.0.0 is downloadable but showing many internal import errors inside index.d.ts. Also some event emitting errors are present for windows. Very difficult for a typescript project to import 'mysql2/promise' due to type definitions |
|
This package doesn't have a published package on npm so it installs directly from github. Can you check that you have git installed and that it has access to your SSH key for access to github? Just doing If you didn't intend to use SSH as an access mechanism you could update package.json to |
I also encountered the same error
|
This solved it for me. Was building inside a docker container that did not have git 🤦 |
Having to add git to the container just to install this one dependency is a pain. Me and probably many others will just uninstall the types. It'd be really useful being able to install it from npm. |
Thanks for @chpaulin suggestion! |
Hi! I'm fairly new with Node and Typescript in general and, while following a tutorial, I've encountered an issue trying to install types/mysql2 via the command
npm i types/mysql2 -D
When running the command, I get the following error:
The log file reads as follows:
Apparently it's an issue with the retrival of files from GitHub, but would like to be sure about it, since I've found nothing looking up for this issue. I appreciate the attention and help beforehand and hope you all are having a nice day! :)
The text was updated successfully, but these errors were encountered: