Nodejs reports an error: SyntaxError: Invalid or unexpected token when it starts

in testsql.js:

var express =require("/data/wwwroot/project/node_modules/express");
var mysql =require("/usr/bin/mysql");

run: node testsql.js

Tip:

usr/bin/mysql:1
(function (exports, require, module, __filename, __dirname) { ELF
                                                              ^

SyntaxError: Invalid or unexpected token
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:549:28)
    at Object.Module._extensions..js (module.js:586:10)
    at Module.load (module.js:494:32)
    at tryModuleLoad (module.js:453:12)
    at Function.Module._load (module.js:445:3)
    at Module.require (module.js:504:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/etc/nginx/html/testsql.js:2:12)
    

solve the problem

Sep.16,2021

Master, Hello ~
confirm the encoding format of the js file. You can take a look at this article, Portal

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e8a395-46d75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e8a395-46d75.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?