Look at the Nuxt 3 documentation to learn more.
❗ Verify that your development environment runs the Node and PNPM versions referenced in the project's actions.yml file
# node
node -v# pnpm
pnpm -vIf your global Node or PNPM version is different, use the respective version setup steps:
Install the project dependencies:
# pnpm
pnpm install❗ Make sure local .env is updated before running dev server (Request .env settings from team)
Start the development server on http://localhost:3000:
# pnpm
pnpm devIf the data is not appearing on listing pages that use Elastic Search run pnpm run generate to load the data.
Static Build:
# pnpm
pnpm generateLocally preview static build:
# pnpm
pnpm startCheck out the deployment documentation for more information.
-
Verify current version:
node -v -
If the current node verison is different from the project node version, check for other existing versions:
nvm listornvm ls -
You should/may see an output such as this:
-> v20.18.3
v22.22.0
v26.2.0
default -> 20.18.3 (-> v20.18.3 *)-
Install the project node version if it is not listed:
nvm install version-number(Example:nvm install 20.20.2) -
Verify project version is installed:
nvm listornvm ls -
Switch to use project node version:
nvm use version-number(Example:nvm use 20.20.2) -
Verify the project version:
node -v
💡 To set specific node version as the global default: nvm alias default version-number
This project requires pnpm ^9.12.1.
If you are using a different global pnpm version (for example, v10+), you may see this error:
ERR_PNPM_UNSUPPORTED_ENGINE
Expected version: ^9.12.1
Got: 10.x.x
Node.js includes Corepack, which lets different projects use different pnpm versions.
-
Enable Corepack:
corepack enable -
Set the correct pnpm version for this project:
corepack use pnpm@9.12.1 -
Verify the version:
pnpm -v -
Run commands as usual:
pnpm installpnpm lint
- Do not downgrade your global pnpm version.
- Do not remove the
enginesfield. - This setup allows different repos to use different pnpm versions safely.
If pnpm -v still shows the wrong version, run:
hash -r
which -a pnpm
If a global pnpm is overriding Corepack, remove it:
npm uninstall -g pnpm
hash -r