No more “works on my machine” — the Node version is locked in the repo, not your shell config.
yarn set node version 20.10.0 --only-if-needed yarn set node version
# Yarn Modern yarn set version stable
Because Yarn depends on Node, you must first switch Node versions at the system level. The following tools are the industry standard for this task: How to "Set" Version Key Feature nvm use 18.0.0 Most popular and battle-tested. Volta volta pin node@20 No more “works on my machine” — the
yarn run start uses the set Node version, but node start.js from your terminal does not. This can be confusing. Volta volta pin node@20 yarn run start uses
: Modern Yarn does not block execution by default for engine mismatches. To restore this behavior, you must use a plugin like yarn-plugin-engines. 2. Automatic Node Switching with Environment Tools
||վͼ|
( ³ICP11007657-3 )
GMT+8, 2026-5-9 07:24 , Processed in 0.038473 second(s), 16 queries , Gzip On, MemCached On.
Powered by Discuz! X3.5
Copyright © 2001-2023, Tencent Cloud.