7 Replies
all ive done is just install prisma in a fresh project and try to use it
this is my schema
i cant seem to find any solutions online
It seems like you're encountering an error when trying to push your database schema using Prisma. The error message suggests that there's an issue with the
npm install
command for @prisma/client@5.7.1
.
The error message npm ERR! Cannot read properties of null (reading 'matches')
suggests that there might be a problem with your npm dependencies or your package.json
file.
The documentation mentions that Deno does not respect or support any npm life cycle events like preinstall
or postinstall
. You must explicitly run the script entries you want to run.
Also, the warning message Prisma could not find a package.json file in the inferred project root
indicates that Prisma is having trouble finding your package.json
file.
Here are a few things you could try:
1. Ensure that your package.json
file is in the root directory of your project.
2. Try running npm install
or npm ci
to ensure all your npm dependencies are correctly installed.
3. If you're using a version of Node.js that's not compatible with the version of Prisma you're using, you might need to upgrade or downgrade Node.js.
4. If none of the above work, you might want to try deleting your node_modules
folder and package-lock.json
file (if they exist), and then running npm install
again.
Remember, these suggestions are not from the documentation and are general debugging steps for this kind of issue.@Anthony2be that sounds like a bug in deno's node compat layer. Can you file an issue for that on the Deno tracker?
I’ll try to do so when I get back home
Should I just make an issue on the deno GitHub containing the error?
Or is there a specific other place I should make it
Yup
K
GitHub
Prisma gives an error on push/migrate · Issue #21841 · denoland/deno
Version: 1.39.2 Background: I was trying to add prisma to a fresh project using npm compat, install worked fine but when I tried to push the schema, it game an error Schema: // This is your Prisma ...