如果我在react native npm ERR中安装任何程序包,则会出现错误!代码ENOENT

时间:2020-03-29 08:49:42

标签: node.js reactjs react-native react-router react-native-android

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\_logs\2020-03-29T08_40_57_081Z-debug.log

任何想法建议我如何解决此错误

我正在检查此答案link,但没有得到解决方案

谢谢

enter image description here

1 个答案:

答案 0 :(得分:1)

已解决错误

使用此命令

react-native start --reset-cache --verbose

DOCUMENT LINK