All Questions
124
questions
1
vote
0
answers
152
views
goormIDE / ERROR: npm v10.2.5 is known not to run on Node.js v14.21.3. This version of npm supports the following node versions: `^18.17.0 || >=20.5
I'm using goormIDE as it's one of course requirements I'm attending to.
I created a file.js and I need to install mysql package; when I type 'npm install mysql' into terminal I get below error message....
0
votes
1
answer
35
views
How to make a function containing a select query return results in the overall function return - Node MySQL (npm package)
I am contacting you today because I am stuck on an error that is preventing me from moving forward. My problem is the following, I have code entirely done in OOP, the problem lies in an asynchronous ...
0
votes
0
answers
168
views
One Docker Container Can't Connect to MySQL Container 'ECONNREFUSED'
I'm facing an issue where one of my Docker containers is unable to connect to a MySQL container, resulting in an 'ECONNREFUSED' error. I can connect to MySQL via 'docker exec -it operatorMysql bash' ...
0
votes
0
answers
24
views
how to delete a row from seuqlize table after time
I am working on an app using NodeJS
and i am using sequelize too
i created a table called users and in the users table there is a column stands for active or not lets say i want to delete users who ...
1
vote
0
answers
319
views
BREAKING CHANGE: webpack < 5 used to include polyfills for node.js core modules by default. This is no longer the case
I know there are several answers to this problem already, but none of them have worked for me.
I already installed these packages:
mysql
buffer
crypto-browserify
utils
process
And my webpack.config....
1
vote
1
answer
650
views
ExpressJS with MySQL - PROTOCOL_PACKETS_OUT_OF_ORDER
I have an ExpressJS server with Node, running with the MySQL npm package, and all works fine. However, when I leave the server running a long time (say, overnight), I always come back to it having ...
0
votes
0
answers
35
views
Node JS Multiple statement queries
I have started a project using Node.js and Express to connect a MySQL DB to my app, but in some cases, I need multiple SQL Statements to fetch data for the dropdown menus as they come from dimensional ...
1
vote
1
answer
6k
views
Module not found: Error: Can't resolve 'crypto' and Cant resolve 'fs'
ive just started to learn react and Ive been trying to get my react app to connect to my database with
var mysql = require('mysql');
var con = mysql.createConnection({
host: "localhost",
...
-2
votes
3
answers
308
views
console.log(req) displays database data
I ran a console.log(req); to see what was there and found that the data from the DB is shown together with the session data
sessionStore: MySQLStore {
. . .
options: {
host: 'localhost',
...
1
vote
0
answers
525
views
how to get table name with table using mysql in nodejs
hi i am getting some table as a output from storedprocedure in nodejs, but output only contains all table value as a json of array the table name as a key value is missing, does it return like that or ...
3
votes
1
answer
6k
views
"Error: Cannot find module 'mysql2/promise'" when running "docker-compose up"
I want to use docker compose to connect a node program, in one container, to a MySQL database, in another container. The database seems to start fine, but my index.js file throws an error: Cannot find ...
1
vote
0
answers
50
views
500 - Server Error : Using expressjs to upload user registration. I can't figure out what is causing this error using express.Router to handle it
I am using .env to connect to MYSQL and the connection works fine. My views are working as well, but the router.post..., is not working. This is a simple registration and login app that I am trying to ...
0
votes
0
answers
123
views
mysql transacation in nodejs project with "npm mysql"
I'm trying to make a transaction(in the node code with mysql npm package) that will select from a table and see if there is a record it will update (UPDATE) otherwise to create a new record (INSERT).
...
0
votes
0
answers
115
views
How to run multiple mysql commands and then send response in express?
I used mevn stack to make a website. But i use mysql as my website’s database.i use axios to interact with express backend. I want to handle multiple insertions in the same request.how can i achieve ...
2
votes
1
answer
2k
views
Why does my connection.query with mysql in node not work?
Goal: Do a simple query to the database.
Expected results: "please print something!" and the results from the query are printed on the terminal.
Actual results: Nothing is printed on the ...