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'



你可能感兴趣的:(其他)