MrAzzeroth Posted October 5, 2017 Posted October 5, 2017 Hy all! Can someone help me? How can i install the mysql module?
David_Sibirkin Posted October 5, 2017 Posted October 5, 2017 (edited) Add new dependency to your package.json , e.g "mysql": "2.14.1" Install it using npm install And then you can require it in your code var mysql = require('mysql'); https://github.com/mysqljs/mysql Edited October 5, 2017 by David_Sibirkin
MrAzzeroth Posted October 5, 2017 Author Posted October 5, 2017 I added mysql to package.json but i have problem with installing what program or what i need to install?
David_Sibirkin Posted October 6, 2017 Posted October 6, 2017 11 час назад, MrAzzeroth сказал: I added mysql to package.json but i have problem with installing what program or what i need to install? Did you install node.js https://nodejs.org/en/ ? What a problem do you have ? 1
MrPancakers Posted October 6, 2017 Posted October 6, 2017 OP you need to install NodeJS on your computer, once you've done that then you just use your Command Prompt on your computer (Windows Key + R, then type cmd) and then you need to change your directory using cd (EG. cd C:/Users/Default/Desktop/Server), once you're at your server folder then do npm install mysql 2
MrAzzeroth Posted October 7, 2017 Author Posted October 7, 2017 (edited) Ohh thanks David and Pancaker, yes, i installed NodeJS and used the cmd, but I can't change the path (cd) I wrote this: cd E:/.../Server Press enter, and the path doesnt changed, stay on C:/Users/MrAzzeroth What can I do now? UPDATE Nope, i forget the /D in cmd. I installed the mysql, thanks for all!!!!! Edited October 7, 2017 by MrAzzeroth Solved
lbufc554 Posted July 22, 2024 Posted July 22, 2024 how i installed it is by typing cd then file directory pressing enter using that directory were server located i typed npm install mysql and it worked
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now