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.
我运行以下命令来安装节点检查器。
npm install -g node-inspector
但是 npm 给出了一些错误。请参阅下图了解更多信息。在此之后,我运行node-inspector了系统无法识别的命令。
node-inspector
这看起来npm无法从公共注册表下载 tarball。
npm
该错误消息ENOTFOUND意味着npm无法解析 的 IP 地址registry.npmjs.org。检查您的网络连接和 DNS 配置并确保您可以访问registry.npmjs.org(例如运行ping registry.npmjs.org)。
ENOTFOUND
registry.npmjs.org
ping registry.npmjs.org