简体   繁体   English

如何同时运行 next.js localhost 和 prisma studio?

[英]How can I run next.js localhost and prisma studio at same time?

Im pretty new to next.js, node and prisma, so please don't rage at me if it is a real basic question.我对 next.js、node 和 prisma 很陌生,所以如果这是一个真正的基本问题,请不要生我的气。 I still didnt find a solution.我仍然没有找到解决方案。

So I'm running my dev environment by writing npm run dev .所以我通过编写npm run dev来运行我的开发环境。 It goes to localhost3000 .它转到localhost3000 Now if I run npx prisma studio , I have my instance on localhost5000 , but I cant get it work running both of them in the same time.现在,如果我运行npx prisma studio ,我的实例在localhost5000上,但我无法让它同时运行它们。

I tried doing this: https://itnext.io/4-solutions-to-run-multiple-node-js-or-npm-commands-simultaneously-9edaa6215a93 but without any success.我试过这样做: https://itnext.io/4-solutions-to-run-multiple-node-js-or-npm-commands-simultaneously-9edaa6215a93但没有任何成功。 The packages didnt install even.软件包甚至没有安装。

What am I missing?我错过了什么?

Use start in front of each command so it starts a new instance在每个命令前使用 start 以启动一个新实例

    "dev": "start next dev & start npx prisma studio",

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM