2 Replies
Skipping coffee for instant knowledge! Let's brew that AI answer now.
Yes, Prisma can be used on Apple Mac computers, including both Intel-based Macs and Apple Silicon (M1/M2) Macs. Here's what you should know:
Apple Silicon (M1/M2) Support
Prisma has official support for Apple Silicon Macs. Initially, Prisma worked on M1 Macs through Rosetta 2 emulation, but since version 2.27.0, Prisma provides native binaries for Apple Silicon Provide precompiled binaries for Mac's M1 ARM architecture.
Setting Up Databases on Mac
Prisma works with various databases on Mac:
- You can set up a local PostgreSQL database using the Postgres Mac App Set up a local PostgreSQL Database on macOS
- MongoDB can also be installed locally on macOS Install a local MongoDB Database on macOS
Binary Targets
If you're developing for multiple platforms, you can specify binary targets in your Prisma schema. For Mac development, you can use:
-
darwin
for Intel Macs
- darwin-arm64
for Apple Silicon Macs
If you need to support both architectures, you can use the native
target which will automatically select the appropriate binary for your current machine.
Prisma should work out of the box on your Mac without special configuration for most use cases.Yes it can! Are you running into any issues?