node.js - 为什么 http 模块不在 node_modules 文件夹中?
问题描述
http
我的问题是node.js 中的模块和其他模块有什么区别。为什么http
模块不在./node_modules
?我在哪里可以找到模块?
解决方案
该http
模块由您安装的 Node.js 提供。这就是所谓的核心模块
您可以在 repo 中查看它们的源代码(或在本地下载它们):https ://github.com/nodejs/node/tree/master/lib
推荐阅读
- python-3.x - 有什么方法可以使用 python 在高音扬声器中下载全文
- javascript - 当 SpeedDial 仅在单击时打开(不悬停)时,如何让 Material-UI SpeedDialAction onClick 事件触发
- python - 根据特定条件从python中的数据框中选择随机行
- javascript - 使用当前不支持的 applyConstraints 切换面临模式(媒体流 Api)
- python - 使用 virtualenvwrapper 在子文件夹中创建虚拟环境
- javascript - 无法读取未定义的 React js 的属性“函数名称”
- database - 一个 GET API 调用中应该嵌套多少数据?
- ansible-awx - Ansible AWX:playbook 成功运行以在 localhost 中创建目录,但是当转到该位置时,该目录不可用
- excel - 从网站查询选择器中提取链接全部
- javascript - 为什么 Node.js Express 项目中的 .Flash 和 .Redirect 不触发路由?