Unverified50% confidenceCautionExact time
使用 NVM 管理 Node 版本时每个 Node 版本拥有独立的全局包目录,切换版本后全局安装的 Claude Code 可能消失
1
Sources
50%
Confidence
Long-term
Relevance
7/12/2026
First Seen
Sources
Related Claims
UnverifiedAfter switching Node.js versions with nvm use, npm packages globally installed under the previous version are not visible in the new version and may need to be reinstalled.72% similarUnverifiedManaging Node.js installations with nvm (Node Version Manager) avoids the need for sudo during global installation because nvm stores global packages in the user directory.71% similarUnverifiednvm (Node Version Manager) is a Node.js version management tool that allows users to install and switch between multiple Node.js versions on the same machine.71% similarUnverifiednvm通过修改shell的PATH环境变量实现Node.js版本切换,将不同版本安装在独立目录下,每个版本拥有完全独立的全局npm包空间68% similarUnverified在项目根目录创建 .nvmrc 文件写入 Node 版本号,执行 nvm use 时会自动切换到对应版本68% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/489490API
curl https://kongchang.com/api/v1/knowledge/claims/489490MCP
get_claim(id=489490)