react-native当我使用 npm 插件库运行时,我的 Metro 捆绑程序中显示以下错误@woocommerce/api。它目前是 woocommerce Rest api 的活跃插件。
我搜索了许多有关stream处理cipher-base. 这不起作用。我还删除了node_modules并再次重新安装。进而,npm start -- --reset-cache。没有什么对我有用。请帮帮我。
error: Error: Unable to resolve module stream from C:\**\node_modules\cipher-base\index.js: stream could not be found within the project.
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
1 | var …Run Code Online (Sandbox Code Playgroud)