Join the Webstudio community

Updated 2 months ago

Trying to selfhost the builder without Devcontainer

At a glance

The community member is experiencing an error while running a Prisma migration command on Windows. They have tried multiple solutions from the internet but nothing has worked. The comments suggest that the core team does not use Windows, so the best solution may be to use a devcontainer. However, some community members have also encountered issues with devcontainers. There is no explicitly marked answer, but the community members are discussing potential solutions, including waiting for a Windows-specific fix or trying to solve the issue using AI.

I keep getting this error, I tried multiple solutions from the internet but nothing worked
Plain Text
PS C:\Users\Laptop\Downloads\webstudio> pnpm migrations migrate 
>> 

> [email protected] migrations C:\Users\Laptop\Downloads\webstudio
> set PRISMA_BINARY_TARGET=["native"] && pnpm --filter=@webstudio-is/prisma-client generate && pnpm --filter=./packages/prisma-client migrations --dev --cwd ../../apps/builder "migrate"


> @webstudio-is/[email protected] generate C:\Users\Laptop\Downloads\webstudio\packages\prisma-client
> PRISMA_BINARY_TARGET=${PRISMA_BINARY_TARGET:-'["native"]'} prisma generate

'PRISMA_BINARY_TARGET' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Laptop\Downloads\webstudio\packages\prisma-client:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @webstudio-is/[email protected] generate: `PRISMA_BINARY_TARGET=${PRISMA_BINARY_TARGET:-'["native"]'} prisma generate`
Exit status 1
 ELIFECYCLE  Command failed with exit code 1.
O
8 comments
Unfortunately nobody on the core team uses windows, so getting devcontainer is your best bet
Or waiting until someone who uses windows sends us a PR for a fix
Oh okay, I had also alot of problems with devcontainer but I'll try that again
trouble is we made devcontainer but then didn't use it ourselves
so there was some error and we didn't have time to look
I think we had users somewhere post this question around devcontainers and someone posted a solution
I saw it, but I encountered other errors
Which i'm trying to fix with AI
Add a reply
Sign up and join the conversation on Discord