3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【Prisma】 prisma migrate devをすると Could not resolve xxx エラーが消えない時

Posted at

経緯

prisma migrate dev をするとnpm install @prisma/clientをしてくれと言われたので、やったがエラーが消えなかった

解消するまで沼ったので対応方法をまとめておく

prisma migrate dev         

Error: Could not resolve @prisma/client despite the installation that we just tried.
Please try to install it by hand with npm install @prisma/client and rerun prisma generate 🙏.

本題

prisma --save-devした後に@prisma/clientし直したら成功した

これが本質的な解消方法なのかは不明だが

npm install prisma --save-dev
npm install @prisma/client
3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?