我无法从react-native项目中的react-native-osc库中导入。导入会导致一个“未定义”的对象。
我确实用npm安装库:
$ npm install react-native-osc --save
在App.js脚本中,导入了对象库,无论如何,当我在Expo.io环境中运行应用程序时,对象osc是'undefiend':
import osc from 'react-native-osc';
console.log(osc); // it will log 'undefined' on expo.io Android and e
对本地世博会用户的反应!
在expo init上使用react导航(都是空白和选项卡),我遇到了错误:
npm ERR! 404 '@react-navigation/native@3.1.4' is not in the npm registry.
我已经开发了几个月的反应本地使用博览会,并有很大的成功学习和解决错误的过程中!
我休假了一段时间,回来开始一个新的项目,然后撞上了一道墙--导航@^3.0.0--我尝试了很多解决方案和不工作的方法。
我正在使用expo和npm启动一个新项目,选项卡和空白模板都有反应导航npm安装问题:
expo init
? Choose a
我试图使用"sudo -g expo“在我的Mac上安装本机,但是在安装结束时会出现错误。
115 packages are looking for funding
run `npm fund` for details
31 vulnerabilities (19 moderate, 12 high)
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit
我安装了一个世博常数进行测试,然后我用
npm卸载博览会常量
现在,当我运行我的应用程序时,会出现一个错误:
无法从C:\Users..\node_modules\expo-font\build\FontLoader.js: expo常量中解析模块expo常量的无法在项目中找到。
我还有什么办法解决这个问题吗?
以下是全部错误:
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and
我使用的是react native和Expo。我无法构建新的应用程序,因为在我使用expo init appName后,它显示以下错误。下面是完整的信息:
Using npm to install packages. You can pass --yarn to use Yarn instead.
√ Downloaded and extracted project files.
× Something when wrong installing JavaScript dependencies. Check your npm logs. Continuing to initialize t
我正在尝试安装expo-cli,但是由于某种原因,ı得到了这个错误。
npm WARN deprecated joi@14.0.4: This version has been deprecated in accordance with the hapi support policy (hapi.im/support). Please upgrade to the latest version to get the best features, bug fixes, and security patches. If you are unable to upgrade at this time,
我试图在Windows10OS上安装expo-cli,以便通过npm install expo-cli --global命令进行本机响应,但是它被困在了这一行。
我曾经尝试过清除node.I've缓存并重新安装,尝试在powershell.I've中运行命令npm install expo-cli --global尝试通过yarn安装expo-cli,但是它被错误There appears to be trouble with your internet connection. Retrying...卡住了,尽管我检查过了,并且我的互联网运行良好。
我想不出怎么解决这
expo : The term 'expo' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify
that the path is correct and try again.
At line:1 char:1
expo init Weather
~~~~
+ CategoryInfo : Obj
在我的React中,我需要安装expo-modules-core和expo-mail-composer。我想确保我安装的版本与我现有的项目兼容。我应该运行npm i expo和npm i install-expo-modules,然后运行npx expo expo-modules-core和npx expo expo-mail-composer吗?
我正在为我的研究工作,一个反应本土项目,与小组成员。我的小组成员谁制定了这个项目没有问题,运行该项目。我已在全球范围内安装了世博,但无法运行该程序:
Unable to find expo in this project - have you run yarn / npm install yet?
├─ action C:\Users\thoma\AppData\Roaming\npm\node_modules\expo-cli\src\commands\start.ts:34:11
├─ C:\Users\thoma\AppData\Roaming\npm\n
我试图创建一个react本机(expo)项目,并在他们的站点上遵循安装指南,但是遇到了一个错误。
我在windows 10上运行。我在powershell中运行了这些步骤。
npm install --global expo-cli
以及npm install expo
然后,当我试图通过运行expo init my-project创建一个新项目时
我知道下面的错误。
expo : The term 'expo' is not recognized as the name of a cmdlet, function, script file, or operable progr
我是react-native的新手,按照react-native的页面,我尝试在Windows10中安装expo-cli,我使用了npm init expo-cli命令,我遇到了这个错误: npm ERR! code E404
npm ERR! 404
npm ERR! 404 'create-expo-cli@latest' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm