When running the below command on node version 14.16.0 we get the following error:
Command: npx browserslist@latest --update-db
Error:
Cannot find module 'node:fs'
Require stack:
/root/.npm/_npx/178/lib/node_modules/browserslist/node_modules/update-browserslist-db/index.js
/root/.npm/_npx/178/lib/node_modules/browserslist/cli.js
@ai
I believe this commit 2b56d5c switched the imports for all node libraries to the require(node:fs) format which may have broken it for older node versions. Could you potentially switch it back to the original form require(fs)?
When running the below command on node version 14.16.0 we get the following error:
Command:
npx browserslist@latest --update-dbError:
@ai
I believe this commit 2b56d5c switched the imports for all node libraries to the
require(node:fs)format which may have broken it for older node versions. Could you potentially switch it back to the original formrequire(fs)?