drizzle-kit generate requires sudo to create directory and SyntaxError on index.cjs, Unexpected "?"

I'm currently getting the above error when trying to generate a migration or spin up drizzle studio:

Bun 0.81
drizzle-orm: 0.28.5
drizzle-kit: 0.19.13

I am also using 'postrgres-js' and 'postgres' drivers in the migration generation - which I have moved to a file outside the base server - any help/suggestions would be appreciated!
Was this page helpful?