0

我正在尝试使用 Recoil 在 react-native 应用程序中管理我的状态。我正在尝试通过运行 npm install recoil (如教程中所写)来安装反冲,但安装失败并出现以下错误:

 npm ERR! code ENOENT
npm ERR! syscall rename
npm ERR! path C:\Users\chaud\Desktop\react_native\native_cli\TodoListApp\node_modules\recoil
npm ERR! dest C:\Users\chaud\Desktop\react_native\native_cli\TodoListApp\node_modules\.recoil.DELETE
npm ERR! errno -4058
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\Users\chaud\Desktop\react_native\native_cli\TodoListApp\node_modules\recoil' -> 'C:\Users\chaud\Desktop\react_native\native_cli\TodoListApp\node_modules\.recoil.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\chaud\AppData\Roaming\npm-cache\_logs\2021-07-03T13_31_30_163Z-debug.log

我该如何解决这个问题?谢谢,

4

0 回答 0