super-tinypng
super-tinypng copied to clipboard
Tinypng without "Too many files uploaded at once" limit
Use LF as newline character fix error in macos env: node\r: No such file or directory
现在开始报错了

好像直接执行会提示这个错误?
建议可以支持jpg,jpeg,png,webp,这些tinyPNG官网都支持
建议可以支持jpg,jpeg,png,webp,这些tinyPNG官网都支持
undefined:2 ^ SyntaxError: Unexpected token < in JSON at position 1 at JSON.parse () at IncomingMessage. (/usr/local/lib/node_modules/super-tinypng/index.js:81:22) at IncomingMessage.emit (node:events:376:20) at IncomingMessage.Readable.read (node:internal/streams/readable:515:10) at flow (node:internal/streams/readable:993:34) at resume_ (node:internal/streams/readable:974:3) at...
有时候会出现这个报错,似乎是图片无法继续被压缩,或者是格式不支持导致的。 ``` Error: socket hang up at connResetException (internal/errors.js:581:14) at TLSSocket.socketOnEnd (_http_client.js:451:23) at TLSSocket.emit (events.js:224:7) at endReadableNT (_stream_readable.js:1206:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) { code: 'ECONNRESET' } ```