本文介绍了ld:YAML文件中不受支持的tapi文件类型'!tapi-tbd'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在运行" npm install "时遇到错误.(请参见图片)

I am facing an error which running "npm install" (see picture attached)

  • 节点版本:10.7.0,npm版本:6.1.0
  • MacOs版本:10.15.6

这是一个React Native项目(我将在iOS上工作),package.json如下:

It's a react native project (i'll be working on iOS part), and the package.json is as:

{
    "name": "abc",
    "version": "0.0.1",
    "private": true,
    "scripts": {
        "postinstall": "./postinstall.sh",
        "start": "react-native start",
        "test": "jest"
    },
    "dependencies": {
        "alt": "^0.18.6",
        "alt-utils": "^2.0.0",
        "axios": "^0.19.2",
        "enumify": "^1.0.4",
        "fs": "0.0.1-security",
        "native-navigation": "https://github.com/abc/native-navigation.git",
        "prop-types": "^15.6.0",
        "react": "16.9.0",
        "react-native": "^0.63.2",
        "react-native-fs": "^2.14.1",
        "react-native-iphone-x-helper": "^1.0.2",
        "react-native-keyboard-aware-scroll-view": "^0.4.2",
        "react-native-multi-validation": "^1.0.0",
        "react-native-navigation": "2.0.2179",
        "react-native-simple-radio-button": "^2.7.1",
        "react-native-webview": "6.0.2",
        "snakecase-keys": "^1.1.0",
        "urijs": "^1.19.0"
    },
    "devDependencies": {
        "@babel/core": "^7.6.2",
        "@babel/runtime": "^7.6.2",
        "babel-jest": "^24.9.0",
        "jest": "^24.9.0",
        "metro-react-native-babel-preset": "^0.56.0",
        "babel-plugin-module-resolver": "2.3.0",
        "babel-preset-es2015": "^6.24.1",
        "babel-preset-react-native": "4.0.1",
        "react-test-renderer": "16.9.0"
    },
    "jest": {
        "preset": "react-native"
    }
}

我尝试过的事情:

我使用brew install watchman安装了watchman,在安装软件包时尝试打印日志,但这对我不起作用.

I installed watchman using brew install watchman, tried printing logs while installing packages but it didn't work for me.

错误消息:

推荐答案

在将操作系统更新到Catalina时,我遇到相同的问题,尝试更新(重新安装)llvm和gcc,然后重新安装xcode命令行工具:

I had a same problem when update os to Catalina, try to update(reinstall) llvm and gcc and then reinstall xcode command-line tools:

$ brew upgrade llvm
$ brew upgrade gcc
$ sudo rm -rf /Library/Developer/CommandLineTools
$ xcode-select --install

您可能需要重新启动系统

you may need to restart the system

这篇关于ld:YAML文件中不受支持的tapi文件类型'!tapi-tbd'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-26 16:45