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