Hy guys. I have run the followings command: `npm i...
# orm-help
m
Hy guys. I have run the followings command:
npm i --save-dev prisma
npm i @Prisma/client
. But still have 2.15 version. Why can this happen?
1
k
I think you have to do
npm i --save-dev prisma@latest
and
npm i @prisma/client@latest
Or run
npm update <package name>
instead
m
After this commands I have next message after generate a client
But method
createMany
, which is available in 2.16 still missing
n
@Mykyta Machekhin you need to specify
createMany
in the
previewFeatures
flag of your Prisma Client
generator
in order to use
createMany
🙂
Copy code
generator client {
  provider        = "prisma-client-js"
  previewFeatures = ["createMany"]
}
m
@nikolasburk I have the next input
n
Hmm, just to be sure, did you remove the
@prisma/cli
package as well? Maybe somehow the old Prisma CLI is invoked 🤔
m
Yep. I remove full node_module dir. And run
npm install
n
Hmm, if you don't have
@prisma/cli
in your
devDependencies
then something seems fishy 🤔 do you mind creating an issue here so that we can try to reproduce the error? 🙏
m
Sorry for this misunderstanding. I thought I needed to remove the cli only from the node_module. But it stayed in the package. Now, I removed it from package too, and it worked. Thanks!