mrm 的版本号 3.0.1
lint-staged 的版本号 11.0.0

(node:6468) ExperimentalWarning: The fs.promises API is experimental

F:\react\jira2>npx mrm lint-staged
npx: installed 298 in 79.891s
(node:6468) ExperimentalWarning: The fs.promises API is experimental
C:\Users\Administrator\AppData\Roaming\npm-cache\_npx\6468\node_modules\mrm\bin
mrm.js:55throw err;^Error: Cannot find module 'C:\Users\Administrator\AppData\Roaming\npm-cache\_npx\6468\lib\node_modules\mrm-task-lint-staged'at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)at Function.Module._load (internal/modules/cjs/loader.js:562:25)at Module.require (internal/modules/cjs/loader.js:690:17)at require (internal/modules/cjs/helpers.js:25:18)at Promise (C:\Users\Administrator\AppData\Roaming\npm-cache\_npx\6468\node_modules\mrm\src\index.js:163:18)at new Promise (<anonymous>)at runTask (C:\Users\Administrator\AppData\Roaming\npm-cache\_npx\6468\node_modules\mrm\src\index.js:153:9)at process._tickCallback (internal/process/next_tick.js:68:7)

原因:
Node.js(windows系统):ExperimentalWarning: The fs.promises API is experimental
根本原因是node的版本不是最新的,而在项目引入的模块是最新的,node.js的版本低于模块的版本:

Error: Cannot find module ‘D:\node\node-global\npm-cache_npx\8468\lib\node_modules\mrm-task-lint-staged’

PS D:\testws\jira> npx mrm lint-staged
D:\testws\jira\node_modules\mrm\bin\mrm.js:55throw err;^Error: Cannot find module 'D:\node\node-global\npm-cache\_npx\8468\lib\node_modules\mrm-task-lint-staged'
Require stack:
- D:\testws\jira\node_modules\mrm\src\index.js
- D:\testws\jira\node_modules\mrm\bin\mrm.jsat Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)at Module.require (internal/modules/cjs/loader.js:957:19)at require (internal/modules/cjs/helpers.js:88:18)at D:\testws\jira\node_modules\mrm\src\index.js:163:18at new Promise (<anonymous>)at runTask (D:\testws\jira\node_modules\mrm\src\index.js:153:9)at processTicksAndRejections (internal/process/task_queues.js:95:5) {code: 'MODULE_NOT_FOUND',requireStack: ['D:\\testws\\jira\\node_modules\\mrm\\src\\index.js','D:\\testws\\jira\\node_modules\\mrm\\bin\\mrm.js']
}

降低 mrm 版本

npx mrm@2 lint-staged

npx mrm lint-staged 报错相关推荐

  1. npx nrm use taobao报错

    最近学习使用react-natve开发项目,按照react-native.cnReact Native 中文网文档中的<建开发环境>的教程安装Android Studio,并创建第一个re ...

  2. npx create-react-app my-app 安装报错

    问题简述  根据react文档上安装命令行npx create-react-app my-app,但是出现报错信息.信息如下 dell@dell-PC MINGW64 /e/demo $ npx cr ...

  3. npx create-nuxt-app myapp2 安装报错

    在vue安装 npx create-nuxt-app myapp2,出现下列错误 采用全局安装方式即可 cnpm install -g create-nuxt-app //全局安装一次即可create ...

  4. Nuxt.js框架启动报错✖ 224 problems (146 errors, 78 warnings) 146 errors and 74 warnings potentially fixab

    项目运行报错  执行npm run lint --fix报错 ✖ 224 problems (146 errors, 78 warnings)   146 errors and 74 warnings ...

  5. 【错误记录】Android Studio 编译报错 ( Execution failed for task ‘:APP_MIDI:lintVitalRelease‘. )

    文章目录 一.报错信息 二.解决方案 方案一 方案二 一.报错信息 编译 Android 应用时 , 报如下错误 : Execution failed for task ':app:lintVital ...

  6. 【十万个BUG】npx mrm lint-staged报错

    G:\Code\react-blogs>npx mrm lint-staged npx: 300 安装成功,用时 93.663 秒 C:\Users\liu\AppData\Roaming\np ...

  7. Eclipse导出APK文件报错 android lint problem

    今天准备用Eclipse导出APK文件上传各大安卓应用商店,结果发现血红一片. 继续导出,报错如下: 百度了一下,发现是android lint problem错误 Lint经常会扫描出一些必需要修复 ...

  8. xcode8 cocoapods 执行 pod spec lint 报错

    这个问题坑了一天多,一直报错: xcodebuild  无法运行,找不到app.xcworkspace,而且还有 后来不停的翻阅资料,重装cocoapods,到最后才知道,貌似是因为更新完Xcode8 ...

  9. 【报错】npx browserslist@latest --update-db

    报错npx browserslist@latest --update-db 解决方式: HBuilderX的安装目录, 切换到HBuilderX/plugins/uniapp-cli下. 删除node ...

最新文章

  1. android 4.4 禁止下拉,Android开发中禁止下拉式的实现技巧
  2. 阿里二面,原来我对自动化测试的理解太浅了
  3. Nature封面:人类还在看提词器,AI的辩论能力却出现了重大进展
  4. 【 C 】assert.h 简明介绍
  5. hdu Remainder
  6. 如何设计一门语言(五)——面向对象和消息发送
  7. The assembly for System.Buffers could not be loaded;无法加载System.Buffers的程序集
  8. xcode8 崩溃问题
  9. jsp mysql模板_jsp的分页查询的代码(mysql数据库)
  10. Git/Github + TortoiseGit 使用教程
  11. RocketDock不能开机正常启动的解决方法
  12. SimpleDateFormat和DateFormat的基本使用(format和prase)
  13. android手机如何设置提高网速,安卓手机网速慢怎么办 安卓手机网速慢解决办法【详解】...
  14. codeforces 581B Luxurious Houses(线段树点更新,区间查询)
  15. Vue基础语法知识(自用,完整版)
  16. 公司发给你一个gitLab账号怎么配置项目!
  17. shell图形化监控网络流量 网络流量的监控工具有很多,如:Mrtg、Cacti、Zabbix等等,他们都有着各自的特点,不同的侧重,只为适合不同的应用场景的各种特殊需求。除了网络流量监控工具以外,还
  18. 解决无法完美卸载office2010的问题
  19. android vendor下的属性值
  20. Linux中对mariadb数据库的管理

热门文章

  1. 数控机床需要c语言程序吗,数控机床的编程有几种方法?
  2. k8s节点重启后,该节点一直not ready
  3. Hacking JWT(JSON Web Token)
  4. 创意简约土木黑灰配色PPT模板
  5. 酷客多荣获“2018年度中国最具创新力小程序品牌”奖
  6. 自动驾驶/机器人 SLAM算法 面经1
  7. 图像处理技术-基本运算
  8. Larval 主从读写分离配置
  9. 手把手带你分解 Vue 倒计时组件
  10. IGRP中的RTP、Neighbor Discovery协议及Time总结