Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我在本地安装了节点模块(与我的节点应用程序位于同一文件夹中),它们会覆盖相同模块的全局安装吗?
是的。请参阅此处有关模块解析的文档。而且,为了清楚起见,这里的“覆盖”只是意味着本地模块是要解析的模块。全局模块将保持不变,其他目录中的 node.js 应用程序仍然可以使用全局模块。