Closed murazi closed 1 year ago
2.3.1
Windows
在软件里点安装无反应,设置源地址,设置代理也无反应
在文件夹下npm安装,依然错误
PS C:\Users\Administrator\AppData\Roaming\picgo> npm install picgo-plugin-s3 npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead. npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN cleanup Failed to remove some directories [ npm WARN cleanup [ npm WARN cleanup 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\resolve', npm WARN cleanup [Error: EPERM: operation not permitted, rmdir 'C:\Users\Administrator\AppData\Roaming\picgo\node_modules\resolve\test\resolver\symlinked'] { npm WARN cleanup errno: -4048, npm WARN cleanup code: 'EPERM', npm WARN cleanup syscall: 'rmdir', npm WARN cleanup path: 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\resolve\\test\\resolver\\symlinked' npm WARN cleanup } npm WARN cleanup ] npm WARN cleanup ] npm ERR! code 1 npm ERR! path C:\Users\Administrator\AppData\Roaming\picgo\node_modules\mozjpeg npm ERR! command failed npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node lib/install.js npm ERR! node:internal/modules/cjs/loader:936 npm ERR! throw err; npm ERR! ^ npm ERR! npm ERR! Error: Cannot find module './util' npm ERR! Require stack: npm ERR! - C:\Users\Administrator\AppData\Roaming\picgo\node_modules\npm-conf\lib\conf.js npm ERR! - C:\Users\Administrator\AppData\Roaming\picgo\node_modules\npm-conf\index.js npm ERR! - C:\Users\Administrator\AppData\Roaming\picgo\node_modules\get-proxy\index.js npm ERR! - C:\Users\Administrator\AppData\Roaming\picgo\node_modules\caw\index.js npm ERR! - C:\Users\Administrator\AppData\Roaming\picgo\node_modules\download\index.js npm ERR! - C:\Users\Administrator\AppData\Roaming\picgo\node_modules\bin-build\index.js npm ERR! - C:\Users\Administrator\AppData\Roaming\picgo\node_modules\mozjpeg\lib\install.js npm ERR! at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:778:27) npm ERR! at Module.require (node:internal/modules/cjs/loader:1005:19) npm ERR! at require (node:internal/modules/cjs/helpers:102:18) npm ERR! at Object.<anonymous> (C:\Users\Administrator\AppData\Roaming\picgo\node_modules\npm-conf\lib\conf.js:5:14) npm ERR! at Module._compile (node:internal/modules/cjs/loader:1105:14) npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) npm ERR! at Module.load (node:internal/modules/cjs/loader:981:32) npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:822:12) npm ERR! at Module.require (node:internal/modules/cjs/loader:1005:19) { npm ERR! code: 'MODULE_NOT_FOUND', npm ERR! requireStack: [ npm ERR! 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\npm-conf\\lib\\conf.js', npm ERR! 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\npm-conf\\index.js', npm ERR! 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\get-proxy\\index.js', npm ERR! 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\caw\\index.js', npm ERR! 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\download\\index.js', npm ERR! 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\bin-build\\index.js', npm ERR! 'C:\\Users\\Administrator\\AppData\\Roaming\\picgo\\node_modules\\mozjpeg\\lib\\install.js' npm ERR! ] npm ERR! } npm ERR! A complete log of this run can be found in: C:\Users\Administrator\AppData\Local\npm-cache\_logs\2023-04-07T05_33_39_959Z-debug-0.log
这个是你系统权限问题,应该搜一下 npm 权限问题
前置阅读 | Pre-reading
PicGo的版本 | PicGo Version
2.3.1
系统信息 | System Information
Windows
问题重现 | Bug reproduce
在软件里点安装无反应,设置源地址,设置代理也无反应
在文件夹下npm安装,依然错误
相关日志 | Logs