Electron项目安装依赖报错
根据提示删除node_modules,重新安装也不行
解决方法
替换镜像源
npm config set registry https://registry.npmmirror.com
yarn config set registry https://registry.npmmirror.com
pnpm config set ELECTRON_MIRROR https://npmmirror.com/mirrors/electron/
进入node_modules
文件夹中的@electron
文件夹中,删除node_modules
,重新安装依赖就好了
或者
清除包管理工具的cache
,再重新安装项目依赖就好了
npm cache clean --force
yarn cache clean
pnpm store prune