npm doctor

检查您的环境

概要

npm doctor

描述

npm doctor 运行一组检查以确保您的 npm 安装具有管理 JavaScript 包所需的内容。npm 主要是一个独立的工具,但它确实有一些必须满足的基本要求:

  • Node.js 和 git 必须可由 npm 执行。
  • 主 npm 注册表 registry.npmjs.com 或其他使用注册表 API 的服务可用。
  • npm 使用的目录 node_modules(本地和全局)存在并且可以由当前用户写入。
  • npm 缓存存在,并且其中的包 tarball 没有损坏。

如果所有这些都不能正常工作,npm 可能无法正常工作。很多问题往往是由于 npm 代码库之外的东西造成的,所以 npm doctor 确认 npm 安装处于良好状态。

此外,除此之外,由于使用旧版本的 npm,也有非常多的问题报告。由于 npm 在不断改进,运行 npm@latest 比旧版本更好。

3Bc8/KIhFpM8CqUIpT608u0wb5hhtgjie7jlLrDtChZzIVN2INagdo6gmirB39Q98kHoCiFsHxmfQJVilELWuUv/+B9j1RIOcDq+qrYic3dDeHmby0Nmm7xwr9tqA117yKEeEVsCIAHLdRIxg3JAIiMfpA4Mcut2luYSvmN9u7A=

npm ping

A4eh5gcmOJIr7TxE/6bxIDdHEUWAbBaRxuUevucoIgQNL2M+X9fu+PU9oqDdfzlVQb1ASL/VYAjvMgUEaOViC025KWV0L9e2beKD4MPvcpawSMsZWThJfU9ClMq4pNeJ3VFPpJJrS7ODV6VfPIziHJXIiRtKs00uvJIEb08paS+4ZCdp+g6bqfFNgadw2O6/3Qum1z/z872PIRnyphWRN4UXOInL+JFFowEPifML+cUM2l8MT934JcSBGwRW1dsoGkW1vqvxeeeAu1tg9+rwMgrMWRue1KxszKZ2xwmrZQENxK3y+QXwaJ4Mrxy2Am7FDQS67GtwUlPVcuwrgvlW+e47dKECyKaRA0M5HcHubLQdeDoq+eDGvgkJ+Vb5PaXf0BRKcuga29s6o53Z9miQjeuRCRX81GFVZrmzoJgl10DHKFyAF7m0JX1+OR+ueXCckWpSUJ+bjmVHqIOb7VGMkJl1lhCJS4BqGw8qWUHNtF+v5+5afvnHvLzfLF3ySC9b

C7/x4AHq3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