- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在尝试使用 react-native-git-upgrade 升级时遇到问题。第一期与https://github.com/facebook/react-native/issues/11578相同.
不幸的是,该线程上的解决方案都没有帮助我。
所以,我试图清除 yarn 缓存。我运行 yarn cache clean
当我再次尝试运行 react-native-git-upgrade
时,出现此错误:
E:\ReactProject\Aurai>react-native-git-upgrade
git-upgrade info Check for updates
git-upgrade info Using yarn 0.24.5
git-upgrade info Read package.json files
git-upgrade info Check declared version
git-upgrade info Check matching versions
git-upgrade info Check React peer dependency
git-upgrade info Check that Git is installed
git-upgrade info Get information from NPM registry
git-upgrade info Upgrading to React Native 0.48.4, React 16.0.0-alpha.12
git-upgrade info Setup temporary working directory
git-upgrade info Configure Git environment
git-upgrade info Init Git repository
git-upgrade info Add all files to commit
warning: LF will be replaced by CRLF in .babelrc.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .buckconfig.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .flowconfig.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .gitattributes.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in __tests__/index.android.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in __tests__/index.ios.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/proguard-rules.pro.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/assets/index.android.bundle.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/java/com/auraiid/id/MainActivity.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/java/com/auraiid/id/MainApplication.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/gradle/wrapper/gradle-wrapper.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/gradlew.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/keystores/BUCK.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/keystores/debug.keystore.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.android.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in index.ios.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId-tvOS/Info.plist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId-tvOSTests/Info.plist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId.xcodeproj/xcshareddata/xcschemes/AuraiId-tvOS.xcscheme.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId.xcodeproj/xcshareddata/xcschemes/AuraiId.xcscheme.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/AppDelegate.h.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/Base.lproj/LaunchScreen.xib.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/Images.xcassets/AppIcon.appiconset/Contents.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/main.m.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiIdTests/AuraiIdTests.m.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiIdTests/Info.plist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Badge.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Button.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Card.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/CardItem.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/CheckBox.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Container.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Content.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Fab.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Footer.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/FooterTab.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Form.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/H1.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/H2.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/H3.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Header.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Icon.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Input.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/InputGroup.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Item.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Label.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/ListItem.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Picker.android.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Picker.ios.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Radio.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Segment.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Separator.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Spinner.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Tab.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/TabBar.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/TabContainer.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/TabHeading.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Text.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Textarea.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Title.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/Toast.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/View.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/components/index.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/variables/commonColor.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/variables/material.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in native-base-theme/variables/platform.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in package.json.
The file will have its original line endings in your working directory.
git-upgrade info Commit current project sources
git-upgrade info Create a tag before updating sources
git-upgrade info Generate old version template
git-upgrade info Add updated files to commit
warning: LF will be replaced by CRLF in .babelrc.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .buckconfig.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .flowconfig.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .gitattributes.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in .gitignore.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/BUCK.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/build.gradle.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/proguard-rules.pro.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/AndroidManifest.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/res/values/strings.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/res/values/styles.xml.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/build.gradle.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/gradle.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/gradle/wrapper/gradle-wrapper.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/gradlew.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/keystores/BUCK.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/keystores/debug.keystore.properties.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/settings.gradle.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in app.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId-tvOS/Info.plist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId-tvOSTests/Info.plist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId.xcodeproj/xcshareddata/xcschemes/AuraiId-tvOS.xcscheme.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId.xcodeproj/xcshareddata/xcschemes/AuraiId.xcscheme.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/AppDelegate.h.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/AppDelegate.m.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/Base.lproj/LaunchScreen.xib.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/Images.xcassets/AppIcon.appiconset/Contents.json.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/Info.plist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiId/main.m.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiIdTests/AuraiIdTests.m.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in ios/AuraiIdTests/Info.plist.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/java/com/auraiid/MainActivity.java.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in android/app/src/main/java/com/auraiid/MainApplication.java.
The file will have its original line endings in your working directory.
git-upgrade info Commit old version template
git-upgrade info Install the new version
error Command failed.
Exit code: 1
Command: git
Arguments: pull
Directory: C:\Users\Ando\AppData\Local\Yarn\cache\v1\.tmp\a3450fedabcb67009ae55c8f322f57b0
Output:
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
git-upgrade ERR! An error occurred during upgrade:
git-upgrade ERR! Error: Command 'yarn add react-native@0.48.4 react@16.0.0-alpha.12' exited with code 1:
stderr: undefinederror Command failed.
Exit code: 1
Command: git
Arguments: pull
Directory: C:\Users\Ando\AppData\Local\Yarn\cache\v1\.tmp\a3450fedabcb67009ae55c8f322f57b0
Output:
fatal: No remote repository specified. Please, specify either a URL or a
remote name from which new revisions should be fetched.
stdout: yarn add v0.24.5
[1/4] Resolving packages...
info Visit https://yarnpkg.com/en/docs/cli/add for documentation about this command.
at ChildProcess.child.on.code (C:/Users/Ando/AppData/Roaming/npm/node_modules/react-native-git-upgrade/cliEntry.js:58:18)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
git-upgrade ERR! Restore initial sources
Note: checking out 'project-snapshot'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at adaaa8d... Project snapshot
我该怎么办?
我当前的 React Native:0.44.0
git 版本 2.13.1.windows.2
yarn 版本 0.24.5
最佳答案
在我的例子中,我的后端有一个服务器文件夹,我不小心在该文件夹上创建了一个 git init 或初始 git repo,然后我试图将代码推送到我的主文件夹或根文件夹,因为该服务器文件夹的 git repo 我的主/根文件夹给我错误,如“文件有工作目录,LF 将被 CRLF 替换”等。所以我只是从根文件夹和服务器文件夹中删除了 git repo 或 .git,然后重试它和这个它起作用的时间。
检查你的文件夹是否有任何文件夹有 git repo init 或者你是否在像我这样的任何文件夹上运行 git init 代码 xD。 如果您想完全删除一个 git 存储库,请使用以下命令:
rm -rf .git(-rf 将强制删除 git 仓库)
试试这个,然后推送或升级 git...
希望对您有所帮助。 :)
关于javascript - react native git 升级错误 : fatal: No remote repository specified,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46477595/
问题是,当用户回复彼此的帖子时,我必须这样做: margin-left:40px; 对于 1 级深度 react margin-left:80px; 对于 2 层深等 但是我想让 react div
我试图弄清楚如何将 React Router 与 React VR 连接起来。 首先,我应该使用 react-router dom/native ?目前尚不清楚,因为 React VR 构建在 Rea
我是 React 或一般编码背景的新手。我不确定这些陈述之间有什么区别 import * as react from 'react' 和 import react from 'react' 提前致谢!
我正在使用最新的稳定版本的 react、react-native、react-test-renderer、react-dom。 然而,react-native 依赖于 react@16.0.0-alp
是否 react 原生 应用程序开发可以通过软件架构实现,例如 MVC、MVP、MVVM ? 谢谢你。 最佳答案 是的。 React Native 只是你提到的那些软件设计模式中的“V”。如果你考虑其
您好我正在尝试在我的导航器右按钮中绑定(bind)一个功能, 但它给出了错误。 这是我的代码: import React, { Component } from 'react'; import Ico
我使用react native创建了一个应用程序,我正在尝试生成apk。在http://facebook.github.io/react-native/docs/signed-apk-android.
1 [我尝试将分页的 z-index 更改为 0,但没有成功] 这是我的codesandbox的链接:请检查最后一个选择下拉列表,它位于分页后面。 https://codesandbox.io/s/j
我注意到 React 可以这样导入: import * as React from 'react'; ...或者像这样: import React from 'react'; 第一个导入 react
我是 react-native 的新手。我正在使用 React Native Paper 为所有屏幕提供主题。我也在使用 react 导航堆栈导航器和抽屉导航器。首先,对于导航,论文主题在导航组件中不
我有一个使用 Ignite CLI 创建的 React Native 应用程序.我正在尝试将 TabNavigator 与 React Navigation 结合使用,但我似乎无法弄清楚如何将数据从一
我正在尝试在我的 React 应用程序中进行快照测试。我已经在使用 react-testing-library 进行一般的单元测试。然而,对于快照测试,我在网上看到了不同的方法,要么使用 react-
我正在使用 react-native 构建跨平台 native 应用程序,并使用 react-navigation 在屏幕之间导航和使用 redux 管理导航状态。当我嵌套导航器时会出现问题。 例如,
由于分页和 React Native Navigation,我面临着一种复杂的问题。 单击具有类别列表的抽屉,它们都将转到屏幕 问题陈述: 当我随机点击类别时,一切正常。但是,在分页过程中遇到问题。假
这是我的抽屉导航: const DashboardStack = StackNavigator({ Dashboard: { screen: Dashboard
尝试构建 react-native android 应用程序但出现以下错误 info Running jetifier to migrate libraries to AndroidX. You ca
我目前正在一个应用程序中实现 React Router v.4,我也在其中使用 Webpack 进行捆绑。在我的 webpack 配置中,我将 React、ReactDOM 和 React-route
我正在使用 React.children 渲染一些带有 react router 的子路由(对于某个主路由下的所有子路由。 这对我来说一直很好,但是我之前正在解构传递给 children 的 Prop
当我运行 React 应用程序时,它显示 export 'React'(导入为 'React')在 'react' 中找不到。所有页面错误 see image here . 最佳答案 根据图像中的错误
当我使用这个例子在我的应用程序上实现 Image-slider 时,我遇到了这个错误。 import React,{Component} from 'react' import {View,T
我是一名优秀的程序员,十分优秀!