Just remind other guys might use this .
If you got a like a 3MB .md file:
Assume u use ubuntu2204lts
sudo pnpm install -g mdanki
su root
/usr/local/lib/node_modules/mdanki/src
cd /usr/local/lib/node_modules/mdanki
cp node_modules/sql.js/js/sql-memory-growth.js node_modules/sql.js/js/sql.js
then run mdanki should be fine.