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是npm 5.2+内置的包执行工具,允许开发者无需全局安装即可直接运行任意npm包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% similarUnverifiedmacOS上npm全局安装的包通常位于/usr/local/lib/node_modules或通过nvm管理的~/.nvm目录下,Windows则在%AppData%/npm/node_modules路径中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)