Haste模块映射中不存在模块`child_process`

时间:2019-08-05 20:07:24

标签: react-native npm google-api

添加到本地反应项目googleapis(https://www.npmjs.com/package/googleapis)程序包中,然后构建失败并出现错误:

error: bundling failed: Error: Unable to resolve module `child_process` from `C:\Users\Artem\Documents\signin\node_modules\google-auth-library\build\src\auth\googleauth.js`: Module `child_process` does not exist in the Haste module map

child_process可以是stream,而不是fs

清除npm缓存,删除node_modules文件夹并重新安装所有软件包对我没有帮助。

  "dependencies": {
    "googleapis": "41.0.1",
    "react": "^16.8.6",
    "react-native": "^0.60.4",
    "react-native-google-signin": "^2.0.0"
  },

0 个答案:

没有答案