gpt4 book ai didi

graphql - 无法运行 prisma deploy : Error: Cluster undefined does not exist

转载 作者:行者123 更新时间:2023-12-02 04:29:14 26 4
gpt4 key购买 nike

我正在学习 graphql 并遵循本教程 https://www.howtographql.com/react-apollo/1-getting-started/

我已经使用 npm install -g prisma 安装了 prisma 并在服务器文件夹中运行此命令 prisma deploy 时出现此错误:

config CWD /Users/aravind/tekie/hackernews-react-apollo/server +0ms
config HOME /Users/aravind +2ms
config definitionDir /Users/aravind/tekie/hackernews-react-apollo/server/database +5ms
config definitionPath /Users/aravind/tekie/hackernews-react-apollo/server/database/prisma.yml +0ms
cli { isGlobal: true } +0ms
StatusChecker setting status checker +0ms
cli command id deploy +7ms
cli:plugincache Got plugin from cache +0ms
cli:plugincache /Users/aravind/Library/Caches/prisma/plugins.json +1ms
cli:plugincache Got plugin from cache +1ms
cli:plugincache /Users/aravind/Library/Caches/prisma/plugins.json +0ms
plugins findCommand prisma-cli-core +0ms
plugin requiring command +0ms
cli-engine:plugins:manager requiring /usr/local/lib/node_modules/prisma/node_modules/prisma-cli-core +0ms
portfinder:defaultHosts exports._defaultHosts is: [ '0.0.0.0', '127.0.0.1', '::1', 'fe80::1', 'fe80::18fb:a4af:2b44:3fea', '192.168.43.100', '2405:204:6209:18b0:144f:bac3:86ac:3cdf', '2405:204:6209:18b0:fd46:e3b7:952f:d569', 'fe80::1c49:3cff:fe5f:7e16', 'fe80::3e5f:ab5d:16dd:a8bf' ] +0ms
cli-engine:plugins:manager required +538ms
plugin required command +540ms
StatusChecker setting status checker +569ms
Error: Cluster undefined does not exist.
at Deploy.<anonymous> (/usr/local/lib/node_modules/prisma/node_modules/prisma-cli-core/src/commands/deploy/index.ts:175:13)
at step (/usr/local/lib/node_modules/prisma/node_modules/prisma-cli-core/dist/commands/deploy/index.js:42:23)
at Object.next (/usr/local/lib/node_modules/prisma/node_modules/prisma-cli-core/dist/commands/deploy/index.js:23:53)
at fulfilled (/usr/local/lib/node_modules/prisma/node_modules/prisma-cli-core/dist/commands/deploy/index.js:14:58)
at <anonymous>
util timed out +0ms
Exiting with code: 0

到目前为止,所有设置都是正确的,我无法运行此命令。感谢您的帮助。

最佳答案

我还目睹了您在按照相同教程尝试部署服务时发现的相同问题。

我偶然发现了教程作者本身的“解决方案”,in this GitHub issue :

The current version of the tutorial just works with Prisma CLI versions < 1.7, so be sure you have some 1.6.x version installed. You can check your current prisma version with this command:

prisma version

Then uninstall and install the correct version like this:

npm uninstall -g prisma

npm install -g prisma@1.6.3

关于graphql - 无法运行 prisma deploy : Error: Cluster undefined does not exist,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50597433/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com