React-nati[email protected] 需要 [email protected] 的对等点,但没有安装

2023-12-29

我正在尝试为反应本机进行设置。但每当我更新文件时都会出现错误

    enoent ENOENT: no such file or directory, open 'React Native/package.json'
npm WARN [email protected] /cdn-cgi/l/email-protection requires a peer of [email protected] /cdn-cgi/l/email-protection but none was installed.
npm WARN React Native No description
npm WARN React Native No repository field.
npm WARN React Native No README data
npm WARN React Native No license field.
   MacBook-Pro:React Native$ npm info react dist-tags.latest

请让我知道如何修复。


安装 React 应该可以修复错误

npm install react --save

另外,您可以尝试升级您的react-native安装。react-native is as v0.30.0 now

npm update react-native
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

React-nati[email protected] 需要 [email protected] 的对等点,但没有安装 的相关文章

随机推荐