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 安装处于良好状态。
zkCNmX4GEerGgkZNwVKO7aqmBbsTm+fyTWvZAUqG+jid37NKfL+QCF//l4Ume/dV/fhjVp5br6slV72wrMFLw6tm2clyrNrKYaCKStF1xYvCgtSbEizsQLjR/RRHlNtiClQ2AVaV+qagkdhGaIAoVDp4mUvAtHhH4qFpOvzIoKIwMX+xVM2NhlfkDDp0dG74H5B8h08YFraW8mcmX6yUHuWoPBu1kbXkUwA8fnLoiBE=
3Bc8/KIhFpM8CqUIpT608u0wb5hhtgjie7jlLrDtChZzIVN2INagdo6gmirB39Q98kHoCiFsHxmfQJVilELWuUv/+B9j1RIOcDq+qrYic3dDeHmby0Nmm7xwr9tqA117yKEeEVsCIAHLdRIxg3JAIiMfpA4Mcut2luYSvmN9u7A=
npm ping
A4eh5gcmOJIr7TxE/6bxIDdHEUWAbBaRxuUevucoIgQNL2M+X9fu+PU9oqDdfzlVQb1ASL/VYAjvMgUEaOViC025KWV0L9e2beKD4MPvcpawSMsZWThJfU9ClMq4pNeJ3VFPpJJrS7ODV6VfPIziHJXIiRtKs00uvJIEb08paS+4ZCdp+g6bqfFNgadw2O6/3Qum1z/z872PIRnyphWRN4UXOInL+JFFowEPifML+cUM2l8MT934JcSBGwRW1dsoGkW1vqvxeeeAu1tg9+rwMgrMWRue1KxszKZ2xwmrZQENxK3y+QXwaJ4Mrxy2Am7FDQS67GtwUlPVcuwrgvlW+e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