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 run dev
Build the application for production:
# pnpm
pnpm run build
Locally preview production build:
# pnpm
pnpm run preview
Check 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
If you are using a different global pnpm version (for example, v10+), you may see this type of 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 the project:
corepack use pnpm@version-number(Example: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