记录一个安装报错的解决办法:安装 antd 组件库报错

318 阅读1分钟

npm install antd的时候一直报错:

npm ERR! cb() never called!

\

npm ERR!     <npm.community>

\

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Program Files\nodejs\node_global_logs\2022-09-07T09_43_02_469Z-debug.log

\

解决方法:

1.升级npm:

npm install npm -g

2.清除之前的安装缓存:

npm cache clean --force

3.重新:

npm install antd

成功