update-db doesn't support Bun. The function getLatestInfo fallbacks on trying to use npm with Bun because Bun didn't had support for the info command:
if (lock.mode === 'bun') {
// TO-DO: No 'bun info' yet. Created issue: https://github.com/oven-sh/bun/issues/12280
return JSON.parse(execSync(' npm info caniuse-lite --json').toString())
}
https://github.com/browserslist/update-db/blob/main/index.js
In the meantime, Bun already has support for the info command:
https://bun.com/docs/pm/cli/info
added in Bun 1.3: https://bun.com/blog/bun-v1.3#new-commands
update-dbdoesn't support Bun. The functiongetLatestInfofallbacks on trying to use npm with Bun because Bun didn't had support for the info command:https://github.com/browserslist/update-db/blob/main/index.js
In the meantime, Bun already has support for the info command:
https://bun.com/docs/pm/cli/info
added in Bun 1.3: https://bun.com/blog/bun-v1.3#new-commands