参考

升级Node版本RN项目运行报错cb.apply is not a function

错误

Loading dependency graph, done.DELTA  [android, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1)/Users/tmk/Downloads/Timekettle/node_modules/graceful-fs/polyfills.js:285if (cb) cb.apply(this, arguments)^TypeError: cb.apply is not a functionat /Users/tmk/Downloads/Timekettle/node_modules/graceful-fs/polyfills.js:285:20at FSReqCallback.oncomplete (node:fs:192:5)
Process terminated. Press <enter> to close the window

解决:

查看报错的源码,在node_module/graceful-fs/polyfills.js的285行

看注释应该用来处理旧版本的问题,查看这个方法的调用位置发现在61-63行

对于我们来说,既然是旧版的问题,我们就不用关心了,直接把调用的方法注释调就行了。

TypeError: cb.apply is not a function相关推荐

  1. 查看node的位置_升级Node版本RN项目运行报错cb.apply is not a function

    今日打算安装一下ReactNative官方推荐的脚手架工具Ignite. infinitered/ignite​github.com Ignite是一套整合了 Redux 以及一些常见 UI 组件的脚 ...

  2. npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR!

    npm ERR! cb.apply is not a function npm ERR! A complete log of this run can be found in: npm ERR! C: ...

  3. npm 报错cb.apply is not a function

    npm 报错cb.apply is not a function的解决办法: 按照这个目录C:\Users(your username)\AppData\Roaming 可以Win + r 输入 %a ...

  4. 微信小程序 TypeError: r.apply is not a function

    找了半天跳转页面的错误,最后发现是跳转到的页面函数写错了..

  5. 安装node-sass运行报错 Module build failed: TypeError: this.getResolve is not a function at Object.loader

    在搭建vue脚手架 或者是在vue项目中,想使用sass的功能, npm install node-sass --save-dev //安装node-sass npm install sass-loa ...

  6. extjs之TypeError: d.read is not a function解决方案

    在创建如下代码时报出此错:TypeError: d.read is not a function 1 Ext.define('shebyxgl_sheb_model', { 2 extend: 'Ex ...

  7. TypeError: Router.use() requires a middleware function but got a Object报错解决

    1.在运行nodejs-mongodb项目时,项目报错 TypeError: Router.use() requires a middleware function but got a Object ...

  8. VUE:解决 [Vue warn]: Error in render: “TypeError: item.slice is not a function“ (取部分数据)

    前些天发现了一个巨牛的人工智能学习网站,通俗易懂,风趣幽默,忍不住分享一下给大家.点击跳转到教程. 1. 双重循环中使用 slice方法,报错: [Vue warn]: Error in render ...

  9. TypeError: db.addUser is not a function : @(shell):1:1 ——mongoDB创建新用户名密码的方法...

    不多说,旧版本使用 db.addUser("root","root") 新版本使用这句会出现这个错误提示 TypeError: db.addUser is no ...

最新文章

  1. 【SVN】svn“E155017工作副本的参考文件损坏、E200014文件校验和不匹配”的解决方法
  2. 如何创建可扩展表视图中的iOS 学习和拓展优化(有待更新)
  3. oracle spm buffer get比较过程,Oracle 11g 新特性 -- SQL Plan Management 示例
  4. JavaScript中递归使用
  5. Annotation processing seems to be disabled for the project microservicecloud
  6. android h5语音,html5录音支持pc和Android、ios部分浏览器,微信也是支持的,JavaScript getUserMedia...
  7. jquery easyui 多选下拉框的实现
  8. python小屋_1000道Python题库系列分享九(31道)
  9. 北京赛区参赛选手代表吴翼在开幕式上的发言稿完整版2011年11月02日 09:50:34
  10. Integer和String必问知识点,面试字节跳动Java工程师该怎么准备
  11. 小程序中从后台获取内容纯数字、纯字母超出父盒子宽度时不换行 解决方法
  12. Maven安装和使用(详细版)
  13. PHP中根据汉字返回拼音
  14. linux中cpu_to_be32,Linux cpufreq framework(2)
  15. Word里面最难删的东西,困扰了97.99%的职场人,实在是太烦人了
  16. 高德地图做汽车路线规划的时候清除之前的路线
  17. iOS_44_导入第3方APP内的文件_UTI
  18. 服务器虚拟化实验报告,服务器虚拟化Hyper-v 3.0实训培训
  19. python xlsx文件与csv文件转换
  20. 巨噬细胞膜包裹载HCPT-PLGA纳米粒(HCPT-MCNP)|生物膜包载去氧氟尿苷

热门文章

  1. MATLAB Simmechanics/Simscape四旋翼无人机控制仿真(2) Simulink模型调节
  2. 【NOIP模拟】弄提纲
  3. 【概率论】1.3古典概率计算
  4. 图片工具网址导航 处理图片免费网站集合
  5. Open BMC开发系列(六)增加对GPIO的支持
  6. 三维重建经典论文合集汇总
  7. JAVA Keytool工具生成Keystore和Truststore文件
  8. 高通Quick Charge快速充电原理分析
  9. Android系统和云计算概念的最佳着陆点
  10. JavaScript数据类型有哪些