报错信息
npm ERR! code E400
npm ERR! 400 Bad Request - GET http://registry.npm.taobao.org/@ant-design%2ficons
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxx/.npm/_logs/2020-12-04T03_36_49_971Z-debug.log
原因
- 镜像源原因;
解决切换npm镜像:
npm config setregistry=https://registry.npmjs.org
- 网络代理原因;关闭代理
- 包名不合法;解决:统一使用小写别用驼峰
一般警告信息
String does not match the pattern of "^(?:@[a-z0-9-*~][a-z0-9-*._~]*/)?[a-z0-9-~][a-z0-9-._~]*$".