【问题标题】:The console log keeps giving me an error, how do i fix this?控制台日志一直给我一个错误,我该如何解决这个问题?
【发布时间】:2021-01-26 22:13:34
【问题描述】:

我使用 replit 但控制台日志一直告诉我每次尝试运行它时缺少一个脚本 因为我使用replit,但在replit文件中它说run = "npm start",每次我运行它都说脚本“start”丢失 here you can see the pic where it gives the error

【问题讨论】:

  • 你必须在 package.json 中定义start 命令

标签: javascript node.js discord.js bots


【解决方案1】:

您应该编辑您的 package.json 文件并添加以下内容:

{
    "scripts": {
        "start": "node index.js"
    }
}

(只添加脚本,不删除文件的当前内容)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-09-19
    • 2013-11-23
    • 2021-07-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多