Pensionskasse Kanton Solothurn
Niklaus Konrad-Strasse 4
4500 Solothurn
Montag – Freitag:
08.30 – 11.30 Uhr / 13.30 – 16.30 Uhr
yarn upgrade package-name But for “yarn update node” — remember: . Update Node separately, then align your project’s config.
yarn install --check-files Use package.json engines field or .yarnrc.yml : yarn update node
yarn set resolution node@20.11.0 yarn node --version # Uses that version | Problem | Solution | |---------|----------| | The engine "node" is incompatible | Update Node or change engines in package.json | | yarn: command not found after Node update | Reinstall Yarn: npm install -g yarn | | node-gyp errors | Install build tools: yarn add -D node-gyp and re-run | | Yarn stuck on old Node version | Delete node_modules , .yarn , re-run yarn set version stable | Summary Cheatsheet | Task | Command | |------|---------| | Update Node (via nvm) | nvm install --lts && nvm use --lts | | Update Yarn | npm install -g yarn@latest | | Set Node engine in project | Add "engines": "node": ">=20" to package.json | | Enforce Node version (Yarn 1) | yarn policies set-version 20.11.0 | | Upgrade dependencies safely | yarn upgrade-interactive --latest | | Verify compatibility | node --version && yarn --version | If you meant something more specific (e.g., “update a Node.js package using Yarn”), the command is simply: yarn upgrade package-name But for “yarn update node”