mulguard
v1.2.5
Published
Authentication for Next.js with Backend-First Architecture
Maintainers
Readme
Installation
From npm (Recommended)
npm install mulguard
# or
pnpm add mulguard
# or
yarn add mulguardFrom Source (Development)
If you're installing from the source code (monorepo), you need to use pnpm because the package uses workspace:* protocol:
# Install pnpm if you don't have it
npm install -g pnpm
# From the monorepo root
pnpm installIf you encounter the error Unsupported URL Type "workspace:" when using npm:
Use pnpm instead (recommended):
pnpm installOr fix the workspace protocol manually:
# From packages/mulguard directory node scripts/fix-workspace.js npm install
Troubleshooting
Error: Unsupported URL Type "workspace:"
This error occurs when trying to install from source code using npm instead of pnpm. Solutions:
- Option 1: Use pnpm (recommended for monorepo development)
- Option 2: Install from npm registry (if the package is published)
- Option 3: Run the fix script:
node packages/mulguard/scripts/fix-workspace.js
Check out the documentation at mulverse.com or visit the Mulverse Network for more information.
