react-native node解决tar ENOENT: no such file or directory, open '/node_modules/.staging/react-native-

tar ENOENT: no such file or directory, open '/node_modules/.staging/react-native-fetch-blob'

这个是由于node(版本?)的原因造成的,解决方法分别执行下面三个命名,第一个需要输入密码

sudo npm cache clean -f

sudo npm install -g n

sudo n stable


这样就可以了。



具体的报错信息如下

WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/react-native-fetch-blob-e47beb04/img/RNFB-Flow-hd.png'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-magic-numbers.js'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARNWARN  tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-nested-ternary.js'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-loop-func.js'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-new-func.js'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-lonely-if.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-new-object.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-lone-blocks.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-new-require.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-labels.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-new-symbol.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-label-var.js'
WARN tar ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-new-wrappers.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-iterator.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-new.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-irregular-whitespace.js'
WARN tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-obj-calls.js'
WARN tarWARN  ENOENT: no such file or directory, lstat '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-plugin-jsx-a11y-c4fa7653/src/util/implicitRoles'
tar ENOENT: no such file or directory, open '/Users/li/Downloads/reactnativeTest/node_modules/.staging/eslint-63bfd5cc/lib/rules/no-invalid-this.js'



  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 4
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值