报错场景:
第一次使用命令:
create-react-app 项目名
创建新项目时出现如下报错信息
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! D:\Program~1\nodejs\node_modules\npm\node_cache--global\_logs\2022-07-15T07_48_08_080Z-debug.log
报错截图:
解决方法:删除代理
-
npm config rm proxy
-
npm config rm https-proxy
执行完上面两条命令后,重新进行项目创建即可