Answer the question
In order to leave comments, you need to log in
How to install mysql via npm?
In general, good evening, and to whom morning.
Installed on the server (Centos 7) Node.js and NPM.
Now I want mysqljs, but it doesn't work...
Tried like this: sudo npm install mysql --save
As a result, the error is:
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name "mysql" under a package
npm ERR! also called "mysql". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! <https://docs.npmjs.com/cli/install#limitations-of-npms-install-algorithm>
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-02-10T15_14_24_776Z-debug.log
Answer the question
In order to leave comments, you need to log in
Do you seriously need to install the database through npm? Are you no longer satisfied with the standard os tools?
npm ERR! code ENOSELF
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question