03 2024 档案
_dirname is not defined in ES module scope
摘要:原因是 ESM 中没有全局 __filename,重新定义下它: import path from 'node:path' import { fileURLToPath } from 'node:url'; const __filename = fileURLToPath(import.meta.u
Error: uninitialized constant Homebrew::Service::System
摘要:快速修复: rm -rf /opt/homebrew/Library/Taps/homebrew/homebrew-services brew tap homebrew/services 重新启动你的服务,比如 MySQL: brew services start mysql
this[kHandle] = new _Hash(algorithm, xofLe
摘要:QUICK FIX You can try downgrade the version. But as a quick fix you can do the below options. On Unix-like (Linux, macOS, Git bash, etc.): export NODE