Expired50% confidenceFactTime unknown
Installing npm packages globally on Linux/Mac requires sudo privileges because the global installation directory (typically /usr/local/lib/node_modules) requires root write access.
1
Sources
50%
Confidence
Medium-term (~90 days)
Relevance
7/2/2026
First Seen
This claim has expired. It is kept for the record and no longer describes the current state.
Valid until: 9/30/2026(expired)
Sources
Claude Code Installation & Setup: A Complete Guide to Building Your AI Coding Environment from Scratch
bilibili图灵Java教学
Related Claims
UnverifiedOn macOS, npm globally installed packages are typically located at /usr/local/lib/node_modules or under the ~/.nvm directory managed by nvm; on Windows they are at the %AppData%/npm/node_modules path.74% similarUnverifiedClaude Code can be installed globally via the npm command `npm install -g @anthropic-ai/claude-code`, and sudo privileges are required on Linux/Mac.71% similarUnverifiedmacOS's XNU kernel is based on the Mach microkernel and BSD layer, and does not include Linux namespace and cgroups implementations; therefore, macOS container solutions must rely on running a Linux virtual machine.62% similarUnverifiedIn Linux package managers, the same library often comes in two packages: a runtime library (e.g., libqpdf) and a development package (e.g., libqpdf-dev, which includes header files).58% similarUnverifiedIn CI environments, npm ci should be used instead of npm install to ensure installation strictly follows the lock file58% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/54332API
curl https://kongchang.com/api/v1/knowledge/claims/54332MCP
get_claim(id=54332)