'EPERM': EPERM: operation not permitted, open 'C:\Users\xxx\.cache\prisma\plugins.json'

prisma

#1

I am trying to run prisma on windows. I have already have docker installed. But when I do prisma init hello-world. It gives me error as follows:

‘EPERM’: EPERM: operation not permitted, open ‘C:\Users\xxx.cache\prisma\plugins.json’

And if I ignore this and proceed normally as suggested in the docs, at the end, It seems the playground is up but other errors follow:

Running $ graphql prepare…

SyntaxError: Unexpected token ! in JSON at position 1
at JSON.parse ()
at C:\Users\xxx\Prisma\hello-world2.install\node_modules\graphql-boilerplate-install\src\prisma.ts:18:23
at
at process._tickCallback (internal/process/next_tick.js:188:7)
×
Cannot read property ‘httpEndpoint’ of undefined

What could this mean?

my prisma/node/docker versions are:

C:\Users\Xiaoyun\Prisma>prisma -v
prisma/1.1.3 (windows-x64) node-v8.9.4

C:\Users\Xiaoyun\Prisma>npm -v
5.6.0

C:\Users\Xiaoyun\Prisma>node -v
v8.9.4

C:\Users\Xiaoyun\Prisma>docker -v
Docker version 17.12.0-ce, build c97c6d6

Thanks for taking a look!


#2

This sounds like the endpoint is not correctly setup in your project.
Can you

  • try again with the latest prisma version
  • if that doesn’t work, share a repository with your current state on Github

Thanks!