首页 \ 问答 \ React-native安装问题(React-native installation issue)

React-native安装问题(React-native installation issue)

按照官方网站的设置步骤,我无法找到react-natve命令参考下面的控制台命令及其输出:

Bhushans-MBP:node_modules bhushanraut$ npm install -g react-native-cli
/Users/bhushanraut/.npm-packages/bin/react-native -> /Users/bhushanraut/.npm-packages/lib/node_modules/react-native-cli/index.js
/Users/bhushanraut/.npm-packages/lib
└── react-native-cli@1.2.0 

Bhushans-MBP:node_modules bhushanraut$ react-native init AwesomeProject
-bash: react-native: command not found

请帮我解决这个问题。谢谢。


Followed the setup steps from official site,I am not able to find react-natve command refer below console commands and its output:

Bhushans-MBP:node_modules bhushanraut$ npm install -g react-native-cli
/Users/bhushanraut/.npm-packages/bin/react-native -> /Users/bhushanraut/.npm-packages/lib/node_modules/react-native-cli/index.js
/Users/bhushanraut/.npm-packages/lib
└── react-native-cli@1.2.0 

Bhushans-MBP:node_modules bhushanraut$ react-native init AwesomeProject
-bash: react-native: command not found

Please help me to resolve this.Thanks in advance.


原文:https://stackoverflow.com/questions/40448598
更新时间:2021-11-24 12:11

最满意答案

问题出在新实例的反斜杠上。 只需从/{id}删除反斜杠即可


The problem was at the backslash on new Instance. Just remove the backslash from /{id} and it works

相关问答

更多
  • 考虑添加对象,而不是添加字符串作为有效负载: request.AddBody(new { table = "users", settings = new[] { new { name = "dnd", value = "true" } } }); Instead of adding a string as the payload consider adding an object: request.AddBody(new { table = "users", settings = new[] { new ...
  • 这听起来很像你正在加载Prototype或MooTools或者其他东西以及jQuery,所以Prototype / MooTools /无论是什么都接管了$符号。 如果这是正在发生的事情,并且您需要其他库,则可以使用jQuery.noConflict() 。 然后你可以使用符号jQuery而不是$来为你的jQuery做东西,或者你把所有的jQuery代码放到一个函数中,你传递给jQuery.noConflict并接受$作为参数,如下所示: // Out here, $ !== jQuery jQuery.n ...
  • 在IE中,我们没有在事件对象的javascript中提供stopPropogation方法。 如果你将在谷歌搜索,你会发现不同的基于IE和IE浏览器的事件对象的实现。 所以为了纠正jQuery给出的单一接口来处理它,所以你应该使用jQuery做事件的方式来阻止这个错误。 你可以阅读这篇文章,以获得更多的解释http://www.quirksmode.org/js/introevents.html in IE we do not have stopPropogation method available in ...
  • 这与Manifest无关。 这是因为你的类com / darkovski / quran / Main的超类不会被加载到apk中导致找不到类。 尝试清理和重建项目或重新启动eclipse。 只需检查新工作区中是否存在所有库并且是否正确构建。 This has nothing to do with Manifest. It is because somehow the super class of your class com/darkovski/quran/Main is not getting loade ...
  • 找到答案,引用自己的评论部分: 哦,该死的我发现了这个问题,这对我来说是一个愚蠢的问题。 我有一个在ORM库中定义NULL的常量文件。 它在它自己的命名空间中定义,所以它不应该干扰全局常量,但我想常量对命名空间有点棘手。 所以TIL,如果你想在命名空间中定义常量,只需在文件顶部添加命名空间是不够的,你必须像这样定义常量 define('NAMESPACE\CONSTANT', 'value'); // or define(__NAMESPACE__ . '\CONSTANT', 'value' ...
  • 问题出在新实例的反斜杠上。 只需从/{id}删除反斜杠即可 The problem was at the backslash on new Instance. Just remove the backslash from /{id} and it works
  • 我已经弄清楚了。 问题与以下事实有关:在Visual Studio的Exception设置窗口(Debug - > Exceptions ...)中,所有复选框都在“Break a a an an:Thrown”列中检查。 因此异常被RestSharp代码捕获,但是VS仍然在执行调用时打破执行,因为它已配置为执行此操作。 截图: http : //i.stack.imgur.com/a0Fc4.png I've figured it out. The problem was related to the f ...
  • 几个小时后,我们终于发现了导致这种情况的原因 当RestSharp向https://us2.api.mailchimp.com/3.0/发出请求时,它选择省略尾随'/'(即使你在RestRequest中专门添加它,例如: new RestRequest("/", Method.GET) ) 所以请求是https://us2.api.mailchimp.com/3.0 这导致服务器端重定向到' https://us2.api.mailchimp.com/3.0/ '(尾随'/'),由于某种原因,此重定向清除了 ...
  • 我从以下链接得到了答案: http://romikoderbynew.com/2012/01/17/slow-httpwebrequest-getresponse/ 应用修复后,使用restsharp和httpwebrequest的性能可比较 I got the answer from the following link: http://romikoderbynew.com/2012/01/17/slow-httpwebrequest-getresponse/ And the performance of ...
  • 我建议将ReorderedTasks [i] .ID.ToString()直接放到url路径。 var request = new RestRequest($"api/task/5/{ReorderedTasks[i].ID.ToString()}/", Method.PUT); 它将有助于减少http请求格式可能出现的问题。 I suggest to put ReorderedTasks[i].ID.ToString() directly to url path. var request = new R ...

相关文章

更多

最新问答

更多
  • 您如何使用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)