Is it possible to run "prisma generate" without internet connection?
Hi! I'm running prisma on a machine, which is without internet connection.
When I run "npx prisma generate", it needs to download the engine from internet. So i get an error. Any option to pre download the prisma.sh and move that to the offline machine then tell prisma generate to use that pre downloaded binaries??
Thanks
3 Replies
@Lampel You should need to download engines only once. You shouldn't need it everytime.
@Nurul hi Nurul and thanks for the answer, How to download the engines? Can you guide me through the process? 1.npx prisma generate (in the online machine) 2.Move the entire project to the offline machine and all prisma migration and functions should work ??? Thanks
The engines should be downloaded automatically when you invoke
npx prisma generate
command. Yes, if you move everything to the offline machine (assuming it has the same OS as the machine in which you ran the generate command), along with node_modules, then it should work