安装@sentry/webpack-plugin依赖的时候一直失败
背景:项目更新依赖或者安装新插件时每次都会提示@sentry/webpack-plugin依赖报错
参考网上资料:https://blog.csdn.net/qq_43382853/article/details/130597740
最终解决方法:修改sentry_cli_cdnurl的仓库地址,改为淘宝源,然后卸载重装,成功了。
npm config set sentrycli_cdnurl="https://npm.taobao.org/mirrors/sentry-cli" npm uninstall @sentry/webpack-plugin npm i -D @sentry/webpack-plugin