This project is configured to use:
- Node.js 24.16.0
- pnpm 11.5.1
The repo pins pnpm through the packageManager field in package.json, so pnpm will be selected automatically when Corepack is enabled.
This repository uses:
- Node.js
24.16.0 - pnpm
11.5.1
The repository includes:
.nvmrcfor Node.js version managementpackageManagerinpackage.jsonfor pnpm version management
With nvm and Corepack configured, developers can switch between repositories without manually managing Node.js or pnpm versions.
If you do not already have Node.js 24.16.0 installed:
nvm install 24.16.0corepack enablenvm useInstall dependencies:
pnpm installMake sure your local .env file is up to date before running the app locally. Request the latest values from the team if needed.
pnpm devThe app will run at:
http://localhost:3000
pnpm generatepnpm startpnpm lintpnpm lint:fixpnpm typecheckpnpm testpnpm cypresspnpm cypress-runDifferent UCLA Library repositories may use different Node versions.
When you switch repositories:
cd <repository>
nvm usenvm usereads the Node version from.nvmrcwhen present.- pnpm is selected automatically through Corepack and the repo’s
packageManagerfield. - Run pnpm commands as usual
Check your active Node version:
node -vCheck installed Node versions:
nvm lsSwitch to the project version:
nvm use 24.16.0Check the active pnpm version:
pnpm -vEnable Corepack if needed:
corepack enableRefresh your shell cache if pnpm still looks wrong:
hash -rCheck which pnpm is being used:
which -a pnpmIf a globally installed pnpm is interfering, remove it:
npm uninstall -g pnpm
hash -rIf dependencies look broken or stale:
rm -rf node_modules .nuxt
pnpm installSee the Nuxt deployment documentation for more details:
https://nuxt.com/docs/getting-started/deployment
If you have pnpm installed globally (for example, via Homebrew) and want to use that version for a repository:
-
Disable Corepack:
corepack disable
-
Run your pnpm commands as usual:
pnpm install
Corepack will no longer intercept the pnpm command, so your globally installed pnpm will be used.
If you later switch to a repository that uses the packageManager field to pin a specific pnpm version:
-
Enable Corepack:
corepack enable -
Verify the active pnpm version:
pnpm --version
-
If the version does not match the one pinned in the repository's
package.json, run:corepack use pnpm@<version>
Replace
<version>with the version specified in the repository'spackageManagerfield. -
Run your pnpm commands again:
pnpm install
If you do not have pnpm installed globally (for example, via Homebrew), keep Corepack enabled.
When switching between repositories (and Node.js versions managed by nvm), Corepack will automatically use the pnpm version pinned in each repository's packageManager field.
If the required pnpm version is not available locally, run:
corepack use pnpm@<version>where <version> is the version specified in the repository's packageManager field.
Then continue using pnpm normally:
pnpm install