Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
764 views
in Technique[技术] by (71.8m points)

node.js - ld: unsupported tapi file type '!tapi-tbd' in YAML file

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

  • node version: 10.7.0, npm version: 6.1.0
  • MacOs version: 10.15.6

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"
    }
}

What I tried:

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

Error Message:

enter image description here

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...