首页 \ 问答 \ React-native包管理器问题(React-native package manager issues)

React-native包管理器问题(React-native package manager issues)

我在线使用以下教程:

https://facebook.github.io/react-native/docs/integration-with-existing-apps.html

它使用以下项目:

https://github.com/JoelMarcey/swift-2048

我正在尝试将我现有的iPhone和Android应用程序与React Native集成。 我用swift在网站上使用了示例,我无法让npm start工作。 我得到以下错误:

[4:38:11 PM] <START> Building Dependency Graph
[4:38:11 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
ERROR  Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:953:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.

npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.2.0/bin/node" "/Users/user/.nvm/versions/node/v6.2.0/bin/npm" "start"
npm ERR! node v6.2.0
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! swift-2048@0.0.1 start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swift-2048@0.0.1 start script 'node node_modules/react-native/local-cli/cli.js start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the swift-2048 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/react-native/local-cli/cli.js start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs swift-2048
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls swift-2048
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

这是它说npm start的步骤。 我可以从上面推断出什么吗? 任何帮助,因为我真的卡住了。 我的版本是:

react-native-cli: 1.0.0
react-native: 0.26.1
node: 6.2.0

如果重要,我也在使用nvm


I'm using the following tutorial online:

https://facebook.github.io/react-native/docs/integration-with-existing-apps.html

It uses the below project:

https://github.com/JoelMarcey/swift-2048

I'm trying to integrate my existing iPhone and android app with React Native. I used the sample on the site with swift and i'm unable to get npm start working. I get the below error:

[4:38:11 PM] <START> Building Dependency Graph
[4:38:11 PM] <START> Crawling File System
[Hot Module Replacement] Server listening on /hot

React packager ready.

2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
2016-09-29 16:38 node[31197] (FSEvents.framework) FSEventStreamStart: register_with_server: ERROR: f2d_register_rpc() => (null) (-22)
ERROR  Error watching file for changes: EMFILE
{"code":"EMFILE","errno":"EMFILE","syscall":"Error watching file for changes:","filename":null}
Error: Error watching file for changes: EMFILE
    at exports._errnoException (util.js:953:11)
    at FSEvent.FSWatcher._handle.onchange (fs.js:1400:11)

See http://facebook.github.io/react-native/docs/troubleshooting.html
for common problems and solutions.

npm ERR! Darwin 16.0.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.2.0/bin/node" "/Users/user/.nvm/versions/node/v6.2.0/bin/npm" "start"
npm ERR! node v6.2.0
npm ERR! npm  v3.10.5
npm ERR! code ELIFECYCLE
npm ERR! swift-2048@0.0.1 start: `node node_modules/react-native/local-cli/cli.js start`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the swift-2048@0.0.1 start script 'node node_modules/react-native/local-cli/cli.js start'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the swift-2048 package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node node_modules/react-native/local-cli/cli.js start
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs swift-2048
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls swift-2048
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

this is the step where it says npm start. Is there anything I can deduce from the above? Any help appreciated as I'm really stuck. My versions are:

react-native-cli: 1.0.0
react-native: 0.26.1
node: 6.2.0

I'm also using nvm if that counts.


原文:https://stackoverflow.com/questions/39781634
更新时间:2024-01-30 21:01

最满意答案

这取决于您正在进行的特定API调用。 但是,任何包含Facebook的rest或图谱API的访问令牌的呼叫都必须通过SSL。 如果您在非安全请求中包含访问令牌,Facebook将拒绝来自其服务器的请求。 唯一不会通过SSL的api调用是访问公共可用信息的那些,例如http://graph.facebook.com/zuck/ 。 这并非特定于任何单个Facebook客户端SDK,这适用于访问Facebook的API服务器的任何客户端。


It depends on the particular API call you are making. However, any call that includes an access token to either Facebook's rest or graph API must be over SSL. Facebook will deny the request from their server if you include an access token over a non-secure request. The only api calls that wouldn't be over SSL are ones that access publicly available information such as http://graph.facebook.com/zuck/. This isn't specific to any single Facebook client SDK, this applies to any client accessing Facebook's API servers.

相关问答

更多
  • 检查 我建议看看他的: Android - 加载图像URL并在ImageView中显示 I'm such a dumbass :D Everything of your answers were right!!! I displayed the ImageView in a dialog. I used the following to point to the ImageView I ...
  • 问题是由于java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastManager 检查FacebookSDK的属性并确保它包含android-supportv4库。 如果不是,请将其添加到FacebookSDK的构建路径中。 The problem is due to java.lang.NoClassDefFoundError: android.support.v4.content.LocalBroadcastMan ...
  • 我使用openForPublish而不是openForRead,这是反直觉但仍然有效。 Facebook共享对话框不需要发布权限即可使用 I was using openForPublish instead of openForRead which is counter intuitive but still works. The Facebook Share Dialog doesn't need publish permissions to work
  • 看来你正在使用单一登录哪btw是正确的事情做,它将授权通过Facebook应用程序,如果它存在于手机上,否则通过webview对话框重定向。 你有没有把你的应用程序的keyhash添加到Facebook开发者的应用程序中? 更多关于SSO和keyhash的说明: https://developers.facebook.com/docs/guides/mobile/#android 关于keyhash的几点说明: Key Hash参考文档 : 签署您的应用程序 。 Keytool命令未找到错误 :Keytoo ...
  • 我更新了facebook登录activity主题,然后它照常工作,我想要。 I updated theme of facebook login activity then ...
  • 我现在能够继续这样做了。 问题是我在Facebook开发者网站上包含的密钥哈希。 由于openssl我得错了钥匙。 我通过包含这段代码得到了正确的代码: try { PackageInfo info = getPackageManager().getPackageInfo( YOUR_PACKAGE_NAME, PackageManager.GET_SIGNATURES); for (Signature signature : info.signatures) ...
  • BufferedReader in = null; StringBuffer sb = new StringBuffer(); BufferedReader inPost = null; try { DefaultHttpClient httpclient = new DefaultHttpClient(); HttpPost httpost = new HttpPost(mURL); httpost.setH ...
  • 这取决于您正在进行的特定API调用。 但是,任何包含Facebook的rest或图谱API的访问令牌的呼叫都必须通过SSL。 如果您在非安全请求中包含访问令牌,Facebook将拒绝来自其服务器的请求。 唯一不会通过SSL的api调用是访问公共可用信息的那些,例如http://graph.facebook.com/zuck/ 。 这并非特定于任何单个Facebook客户端SDK,这适用于访问Facebook的API服务器的任何客户端。 It depends on the particular API cal ...
  • 您是在谈论Facebook上的电子邮件+位置,还是Android平板电脑上的电子邮件和位置。 如果您正在谈论FB权限,则几乎必须使用FB SDK,并请求权限查看此FB权限列表 。 FB不喜欢开发人员推出他们自己的界面,并且如果你的应用程序受欢迎会阻止你,并且你打破了TOU 。 如果你想从Android获得,你需要添加 获得位置。 您可以使用Intent发送电 ...
  • 请注意,authorize方法是异步的。 您应该实现DialogListener的onComplete方法,并在那里完成您需要的所有工作(例如我请求的图形API)。 Note that authorize method is asynchronous. You should implement an onComplete method of DialogListener and make all the work you need (such as graph API me request) there.

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)