Lea*_*ner 5 reactjs react-native
我第一次构建反应本机应用程序。我想使用 native-base 所以我遵循了文档:https ://docs-v2.nativebase.io/docs/GetStarted.html
>> npm install native-base@2 --save
npm WARN ERESOLVE overriding peer dependency
added 39 packages, and audited 1153 packages in 10s
139 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
Run Code Online (Sandbox Code Playgroud)
反应本机链接
warn 包 native-base 包含无效配置:不允许“dependency.assets”。请使用“react-native config”命令验证其是否正确链接,并就此联系软件包维护人员。错误:未知命令“链接”
我尝试了以下几种方法,但仍然没有运气
>> npx react-native-asset
its giving error as : cannot find module 'react-native.config.js'
I could not get this config file as well.
next I have deleted node modules and did npm install again, still the same error: unknown command 'link'
Please suggest solution.
Run Code Online (Sandbox Code Playgroud)
Li *_*eng -1
对我来说,当node node_modules/react-native/local-cli/cli.js start出现这样的错误时,原因是:
package.json我只是在手动编辑 no的依赖项中添加一些npm install
| 归档时间: |
|
| 查看次数: |
2622 次 |
| 最近记录: |