Unverified50% confidenceFactExact time
A global installation (npm install -g) writes the executable to the system path, allowing it to be called from any working directory; a local installation is limited to the project's node_modules and must be triggered via npx or project scripts.
1
Sources
50%
Confidence
Long-term
Relevance
10/5/2026
First Seen
Sources
Related Entities
Related Claims
Unverifiednpm'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.79% similarVerifiednpx is a package execution tool built into npm 5.2+, allowing developers to directly run any npm package without a global installation.73% similarUnverifiednpm i is an abbreviation for npm install, which reads package.json and downloads dependencies into the node_modules directory.72% similarUnverifiedThe -g flag in npm install -g indicates a global installation, after which the tool can be invoked from any directory on the system.70% similarUnverifiedOn 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.70% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/976995API
curl https://kongchang.com/api/v1/knowledge/claims/976995MCP
get_claim(id=976995)