Unverified50% confidenceFactExact time
A global npm install (`-g`) downloads the package to the global node_modules directory and creates an executable entry in Node's bin directory, which is in PATH by default; terminals that are already open will not pick up PATH changes, so the terminal needs to be reopened.
1
Sources
50%
Confidence
Long-term
Relevance
10/17/2026
First Seen
Sources
OpenCode 2 Free AI Coding Agent: Build Apps with Zero Credit Card, Step by Step
youtubeRaman Makkar AI10/15/2026
Related Entities
Related Claims
VerifiedChecking "Add to PATH" during Node.js installation automatically adds the installation path to the system environment variable PATH, allowing the system to recognize the node and npm commands from any location.79% similarUnverifiedA 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.75% similarVerifiedConfiguring system environment variables requires creating a new NODE_PATH variable pointing to the node_modules directory under the global directory, and adding the global directory path and %NODE_PATH% to the Path variable.75% similarUnverifiedAfter setting npm paths, an .npmrc configuration file is automatically generated in the user directory, recording the current npm configuration items.74% similarUnverifiednvm通过修改shell的PATH环境变量实现Node.js版本切换,将不同版本安装在独立目录下,每个版本拥有完全独立的全局npm包空间73% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1055277API
curl https://kongchang.com/api/v1/knowledge/claims/1055277MCP
get_claim(id=1055277)