找不到模块fs

时间:2018-10-17 11:50:50

标签: react-native

我收到此错误消息:

  

错误:捆绑失败:错误:尝试解析模块fs时   来自文件\ node_modules \ bindings \ bindings.js , the package E:\ React   本机程序\ realm_insert \ node_modules \ fs \ package.json was successfully found. However, this package itself specifies a module field that could not be resolved ( E:\ React Native   程序\ realm_insert \ node_mod ules \ fs \ index.js`。

实际上,这些文件都不存在:

package.json
{
  "name": "realm_insert",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "@babel/runtime": "^7.1.2",
    "bindings": "^1.3.0",
    "fs": "0.0.1-security",
    "node-pre-gyp": "^0.11.0",
    "react": "16.6.0-alpha.8af6728",
    "react-binding": "^0.9.1",
    "react-native": "0.57.3",
    "react-native-fs": "^2.11.18",
    "react-native-popup-dialog": "^0.15.1",
    "react-native-realm": "^0.1.2",
    "react-native-swipeout": "^2.3.6",
    "realm": "^0.14.3",
    "rn-nodeify": "^10.0.0"
  },
  "devDependencies": {
    "babel-jest": "23.6.0",
    "jest": "23.6.0",
    "metro-react-native-babel-preset": "0.48.1",
    "react-test-renderer": "16.6.0-alpha.8af6728"
  },
  "jest": {
    "preset": "react-native"
  }
}

0 个答案:

没有答案
相关问题