0

我在nodejs中有一个错误,它说在参数列表之后丢失),它在visual studio代码窗口上运行良好,但是当我部署到我的Centos 7 VPS服务器时,错误显示,是操作系统错误还是其他?我该怎么办兄弟?

这是代码

module.exports  = function(app){
const bodyParser= require('body-parser');
const database  = require('../app-config/database');
const CircularJSON = require('circular-json');

app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }))

    app.get('/api/user', async function (req, res) {
        var history = await database("SELECT * FROM history");
        res.status(200).json({
            status:true,
            info: "Berhasil Ambil Data",
            // jumlahuser : jumlahuser2.recordsets[0][0].jumlah,
            data: history
        })
    })
}

在此处输入图像描述

4

0 回答 0