npm安装一些node包时,总是卡在:[ …] / fetchMetadata: sill resolveWithNewModule find-cache-dir@
错误信息
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Administrator.DESKTOP-D435S9M\AppData\Roaming\npm-cache_logs\2020-07-16T09_04_03_765Z-debug.log
解决办法
更换成淘宝的源
npm config set registry https://registry.npm.taobao.org
验证是否成功
npm config get registry 或 npm info express