终端运行:
> npx mrm lint-staged
输出
npx: 295 安装成功,用时 23.648 秒
Preset “default” not found.
We’ve tried to load “mrm-preset-default” and “default” npm packages.
问题:
The problem is within mrm which is currently in version 3 that seems to be incompatible with lint-staged, to fix this you got to specify mrm version 2 by running npx mrm@2 lint-staged
翻译:
问题在于mrm当前版本 3 似乎与 lint-staged 不兼容,要解决此问题,您必须通过运行指定 mrm 版本 2npx mrm@2 lint-staged
需要执行如下命令:
> npx mrm@2 lint-staged
大功告成!