如果我在 react native npm ERR 中安装任何包会出错!代码ENOENT
Getting error if i install any packege in react native npm ERR! code ENOENT
NPM 版本 - 6.13.4
节点版本 - v12.16.1
我正在尝试安装 npm i react-native-router-flux --save
出现错误
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path G:\reactnative\Testing\node_modules\babel-plugin-react-transform
npm ERR! dest G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'G:\reactnative\Testing\node_modules\babel-
plugin-react-transform' -> 'G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Bhaman\AppData\Roaming\npm-cache\_logs20-03-29T08_40_57_081Z-debug.log
我怎样才能解决这个错误任何想法建议我
我正在检查这个答案 但没有找到解决方案
谢谢
错误已解决
使用这个命令
react-native start --reset-cache --verbose
NPM 版本 - 6.13.4
节点版本 - v12.16.1
我正在尝试安装 npm i react-native-router-flux --save
出现错误
npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path G:\reactnative\Testing\node_modules\babel-plugin-react-transform
npm ERR! dest G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'G:\reactnative\Testing\node_modules\babel-
plugin-react-transform' -> 'G:\reactnative\Testing\node_modules\.babel-plugin-react-transform.DELETE'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Bhaman\AppData\Roaming\npm-cache\_logs20-03-29T08_40_57_081Z-debug.log
我怎样才能解决这个错误任何想法建议我
我正在检查这个答案
谢谢
错误已解决
使用这个命令
react-native start --reset-cache --verbose