应用程序未使用“部署”;启动node.js";剧本

应用程序未使用“部署”;启动node.js";剧本,node.js,npm,discord,discord.js,gcloud,Node.js,Npm,Discord,Discord.js,Gcloud,我正试图用谷歌云部署一个Discord机器人。每当我尝试使用gcloud app deploy进行部署时,都会出现以下错误: > discord-bot@1.0.0 start /app > node index.js internal/modules/cjs/loader.js:638 throw err; ^ Error: Cannot find module 'discord.js-commando' at Function.Module._reso

我正试图用谷歌云部署一个Discord机器人。每当我尝试使用
gcloud app deploy
进行部署时,都会出现以下错误:

> discord-bot@1.0.0 start /app
> node index.js

internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'discord.js-commando'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/app/index.js:1:28)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! discord-bot@1.0.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the discord-bot@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2019-12-09T05_48_58_649Z-debug.log

任何帮助都将不胜感激。谢谢大家!

尝试安装所需的软件包
discord.js commando
。它不在package.json中。您可以使用npm install discord.js-commando来安装它——保存

可以清楚地看到错误“错误:找不到模块‘discord.js commando’”。在package.jsonWow中添加“discord.js commando”,我真傻。成功了。谢谢你的帮助!
  "name": "discord-bot",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "start": "node index.js"
    "dev": "nodemon index.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "discord.js": "^11.4.2",
    "dotenv": "^7.0.0"
  },
  "devDependencies": {
    "nodemon": "^1.18.11"
  }
}