mysql2 icon indicating copy to clipboard operation
mysql2 copied to clipboard

`npm i mysql2` has error `npm ERR! enoent undefined ls-remote -h -t ssh://[email protected]/types/mysql.git`

Open zhipenglin opened this issue 4 years ago • 2 comments

[email protected] has this problem

mysql2 <= 2.2.2 as normal

env: docker image node:12-alpine

zhipenglin avatar Sep 21 '20 08:09 zhipenglin

Please post to the npm mysql2 module repo. This is the Ruby gem repo. There is no relationship, the naming is a coincidence.

sodabrew avatar Sep 21 '20 10:09 sodabrew

I have a suggestion to avoid this kind of user's mistakes.

While it is written that the mysql2 is a library for Ruby in both "About" and README.md, I think a better way might be to rename this repo's name from brianmario/mysql2 to brianmario/ruby-mysql2.

I just found some example about the DB connector's repository names.

  • https://github.com/ged/ruby-pg (gem name: pg)
  • https://github.com/mongodb/mongo-ruby-driver (gem name: mongo)
  • https://github.com/mongodb/bson-ruby (gem name: bson, that is used as a runtime dependency of mongo gem).
  • https://github.com/redis/redis-rb (gem name: redis)

junaruga avatar Mar 24 '21 14:03 junaruga