Electron 执行npm run make报错 PERM: operation not permitted, rmdir ‘C: \Users\Administrator...

Electron 执行npm run make报错 PERM: operation not permitted, rmdir ‘C: \Users\Administrator..._第1张图片

报错是C盘的权限问题,写入文件权限不够所以,在环境变量里将TEMP路径改成其他磁盘

Electron 执行npm run make报错 PERM: operation not permitted, rmdir ‘C: \Users\Administrator..._第2张图片

如果下载很慢,打开:CNPM Binaries Mirrorhttps://registry.npmmirror.com/binary.html?path=electron/v23.3.11/下载包放到你的electron目录下:C:\Users\86136\AppData\Local\electron\Cache

然后执行npm run make

Electron 执行npm run make报错 PERM: operation not permitted, rmdir ‘C: \Users\Administrator..._第3张图片

参考文章:

淘宝Electron镜像:registry.npmmirror.com/binary.html?path=electron 

1、Electron使用electron-forge打包报错_could not find any make targets configured for the_明天依旧美的博客-CSDN博客

2、electron(二):vue成型项目中使用electron打包的时候会报错下载部分文件失败_浩星的博客-CSDN博客

你可能感兴趣的:(electron,npm,javascript)