今早来公司,拉取代码后安装依赖,报错【vxe-table-plugin-antd is not in the npm registry, or you have no permission to fetch it】,分析半天无解,同事提示是否npm配置,查看之:

1、输入npm config list 命令查看当前配置情况,主要看npm获取地址,我这里是由于之前设置的私有地址导致

2、重新设置获取地址并再次安装即可

npm config set strict-ssl false

npm config set registry "http://registry.npmjs.org/"

pnpm install

3、风起于青萍之末,浪成于微澜之间,真是防不胜防。。。

Logo

有“AI”的1024 = 2048,欢迎大家加入2048 AI社区

更多推荐