When I follow the tutorial to setup a database, it...
# orm-help
u
When I follow the tutorial to setup a database, it says run
Copy code
npx prisma init
to setup the folders, yet I am prompted with a helper menu.
r
Hey @urbanendeavour 👋 For Prisma1 the command has been renamed to
prisma1
Could you try installing the package
prisma1
locally and then running
npx prisma1 init
?
u
Which version is which? I started off with a graphql tutorial ended up here as it's a requirement for it.
i've just created the folder manually does that do the same thing?
I am following the guide.
I have setup a mysql database and configured .env and schema.prisma.
👍 1
Every time I run that command I get that helper menu and errors.
Am trying to get it to introspect the database schema.
Is there a reason why the user guide is not up to date?
r
Is there any version of
prisma
installed globally? And as per the steps provided in the link, have you run these commands?
Copy code
npm init -y
npm install @prisma/cli --save-dev
u
seems it was the global install that broke everything, thank you.
👍 1