Я пытаюсь развернуть свое приложение в Google Clouds App Engine
.Он отлично работает как локальный экземпляр, но как только я загружаю его в gcloud, он перестает работать как положено.
Я создаю бота для раздора.Через него я получаю доступ к API Discord и YouTube.Подключение к ним, похоже, работает, так как бот выходит в сеть после публикации.Тем не менее, похоже, что функция воспроизведения музыки перестает работать, когда он работает на gcloud.Все остальные функции работают как задумано.Вот почему я подозреваю, что с некоторыми пакетами что-то пошло не так.Вероятно, связано с музыкой или звуком.
Вопрос: Есть ли способ убедиться, что мои пакеты узлов были установлены правильно через облако Console
или cmd?Или, что еще лучше, переустановите их.
Я посмотрел на Развернуть и запустить App Engine .
Я публикую с помощью cmd-tools и запустив: gcloud app deploy
app.yaml:
runtime: nodejs
env: flex
manual_scaling:
instances: 1
package.json:
{
"name": "yup",
"version": "1.0.5",
"description": "bot",
"main": "app.js",
"private": true,
"engines": {
"node": ">=8.11.3"
},
"scripts": {
"start": "node app.js",
"deploy": "gcloud app deploy",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "Joel",
"license": "ISC",
"dependencies": {
"@types/request": "^2.48.1",
"discord.js": "^11.4.2",
"express": "^4.16.4",
"ffmpeg-binaries": "^4.0.0",
"fs": "0.0.1-security",
"get-youtube-id": "^1.0.1",
"opusscript": "0.0.6",
"request": "^2.88.0",
"youtube-info": "^1.3.2",
"ytdl-core": "^0.29.1",
"ytdl-getinfo": "^1.1.0"
},
"devDependencies": {
"typescript": "^3.3.3333"
}
}
При дальнейшей проверке я могу увидеть это в журналах установки:
Step #1: npm WARN discord.js@11.4.2 requires a peer of bufferutil@^3.0.3 but none is installed. You must install peer dependencies yourself.
Step #1: npm WARN discord.js@11.4.2 requires a peer of erlpack@discordapp/erlpack but none is installed. You must install peer dependencies yourself.
Step #1: npm WARN discord.js@11.4.2 requires a peer of node-opus@^0.2.7 but none is installed. You must install peer dependencies yourself.
Step #1: npm WARN discord.js@11.4.2 requires a peer of sodium@^2.0.3 but none is installed. You must install peer dependencies yourself.
Step #1: npm WARN discord.js@11.4.2 requires a peer of libsodium-wrappers@^0.7.3 but none is installed. You must install peer dependencies yourself.
Step #1: npm WARN discord.js@11.4.2 requires a peer of uws@^9.14.0 but none is installed. You must install peer dependencies yourself.