添加到本地反应项目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"
},