【发布时间】:2017-09-22 16:02:55
【问题描述】:
我在我的 react native 项目中使用 xml2json,在运行应用程序时,我收到错误消息
UnableToResolveError: Unable to resolve module `events`
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: `watchman watch-del-all`.
2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`.
3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start --reset-cache`.
在其他第三方模块中也出现过,都是nodejs核心模块,无法解析。 需要你的帮助,谢谢 :)
【问题讨论】:
-
不肯定你能做到这一点,Node Core 库最终依赖于 V8 和移动设备上不存在的 C 实现,所以据我所知,你不能像那样将它们捆绑在一起。
-
同样的问题((有什么消息吗?
标签: node.js reactjs npm react-native npm-install