lzwme / webp-batch-convert Goto Github PK
View Code? Open in Web Editor NEWwebp 图片批量转换。将 png/jpg/bmp 格式的图片批量转换为 webp 格式。
webp 图片批量转换。将 png/jpg/bmp 格式的图片批量转换为 webp 格式。
fs.exists(list[0].dst) in cwebp.js not worked for nodejs 10.x, it should be fs.existsSync(list[0].dst)
Uncaught Error: Cannot find module "fs" at webpackMissingModule (cwebp.js:3) at eval (cwebp.js:3) at Object.<anonymous> (app.js:formatted:1532) at d (app.js:formatted:708) at r (app.js:formatted:410) at eval (index.js:1) at Object.<anonymous> (app.js:formatted:1529) at d (app.js:formatted:708) at r (app.js:formatted:410) at eval (container.jsx:13)
引起后续一系列问题
现在是CRLF,安装到mac环境下后,命令行报错:
~ » cwebp-batch -v
env: node\r: No such file or directory
我在本地把bin文件换行方式 CRLF 改为 LF 后解决。
Mac 通过 npm 全局安装后无法运行,找不到 ../cjs/cli
入口。
node:internal/modules/cjs/loader:959
throw err;
^
Error: Cannot find module '../cjs/cli'
Require stack:
- /Users/Cyrus/.nvm/versions/node/v18.6.0/lib/node_modules/webp-batch-convert/bin/wbc.js
at Module._resolveFilename (node:internal/modules/cjs/loader:956:15)
at Module._load (node:internal/modules/cjs/loader:804:27)
at Module.require (node:internal/modules/cjs/loader:1022:19)
at require (node:internal/modules/cjs/helpers:102:18)
at Object.<anonymous> (/Users/Cyrus/.nvm/versions/node/v18.6.0/lib/node_modules/webp-batch-convert/bin/wbc.js:3:1)
at Module._compile (node:internal/modules/cjs/loader:1120:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1174:10)
at Module.load (node:internal/modules/cjs/loader:998:32)
at Module._load (node:internal/modules/cjs/loader:839:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/Users/Cyrus/.nvm/versions/node/v18.6.0/lib/node_modules/webp-batch-convert/bin/wbc.js'
]
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.