之前项目,重新install时realm出错



  • 安装realm时遇到下面问题。:

    realm@1.13.0 install /Users/admin/Desktop/PaiGeExpressClient/node_modules/realm
    node-pre-gyp install --fallback-to-build

    node-pre-gyp ERR! Tried to download(404): https://static.realm.io/node-pre-gyp/1.13.0/realm-v1.13.0-node-v59-darwin-x64.tar.gz
    node-pre-gyp ERR! Pre-built binaries not found for realm@1.13.0 and node@9.8.0 (node-v59 ABI, unknown) (falling back to source compile with node-gyp)

    package.json如下:
    {
    "name": "PaiGeExpressClient",
    "version": "0.0.1",
    "private": true,
    "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
    },
    "dependencies": {
    "react": "16.0.0-alpha.12",
    "react-native": "0.46.1",
    "react-native-baidu-map": "^0.6.0",
    "react-native-contacts": "^2.0.0",
    "react-native-datepicker": "^1.6.0",
    "react-native-image-picker": "^0.26.7",
    "react-native-keyboard-aware-scroll-view": "^0.3.0",
    "react-native-root-toast": "^1.3.0",
    "react-native-wechat": "^1.9.9",
    "react-navigation": "^1.0.0-beta.11",
    "realm": "^1.12.0"
    },
    "devDependencies": {
    "babel-jest": "20.0.3",
    "babel-preset-react-native": "2.1.0",
    "jest": "20.0.4",
    "react-test-renderer": "16.0.0-alpha.12"
    },
    "jest": {
    "preset": "react-native"
    }
    }

    网上能找的方法都试过,一直不行。
    请大神们指教解决思路。


Log in to reply