The name of the module that should be installed when using mariaDB in node.js? And the error content and solution when installing?

Asked 1 years ago, Updated 1 years ago, 156 views

We are developing a web app with node.js. I'm going to study and start a startup.

I was using mysql and found several issues about it and I'm switching to mariaDB.

But... There's traffic from the first one.

Mysql module

git bash
npm uninstall mysql

Do it

git bash
npm install mariasql --save

When I tried to install it, the following error occurred.

I tried googling and there were a lot of issues. But... I came here because my English is too weak.

I think there is a saying that Python is needed, but is it related to MariaDB?

Q1) I want to know how to solve the above error.

Q2) When I looked up the npm module about mariaDB, there were mariaDB and mariasql.

I also want to know the difference between the two modules.

Q3) If you have any other advice or tips, please let me know.

node.js mariasql error install

2022-09-22 22:01

1 Answers

To install the mariasql module in Windows, you must 1) install Python 2.7 and 2) Microsoft Visual Studio Community 2015. Also, when installing Visual Studio 2015, you should be careful because Visual C++ Compiler will not be installed by default, so you should select Custom and select Programming Languages > Visual C++ as shown in the picture.

The download links for Python and Visual Studio are as follows:

Also, the mariadb module was last modified 2 years ago, so it is no longer maintained, so I think you can use the mariasql module.


2022-09-22 22:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.