Unverified50% confidenceFactExact time
By default, npm installs global packages to the C:\Users\username\AppData\Roaming\npm directory on Windows.
1
Sources
50%
Confidence
Long-term
Relevance
9/28/2026
First Seen
Sources
Related Entities
Related Claims
Unverifiednpm global installation (the -g flag) places packages in a system-level directory rather than the current project's node_modules, making the claude command available in any directory.71% similarUnverifiedAfter setting npm paths, an .npmrc configuration file is automatically generated in the user directory, recording the current npm configuration items.71% similarUnverifiedmacOS上npm全局安装的包通常位于/usr/local/lib/node_modules或通过nvm管理的~/.nvm目录下,Windows则在%AppData%/npm/node_modules路径中70% similarUnverifiednpm's prefix determines the storage location for packages installed globally with npm install -g, and the packages will be placed in the node_modules subfolder under the prefix directory.69% similarVerifiedThe commands npm config set prefix and npm config set cache can be used to set npm's global directory and cache directory respectively.67% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/957315API
curl https://kongchang.com/api/v1/knowledge/claims/957315MCP
get_claim(id=957315)