无法解析模块...急速模块中不存在

时间:2019-06-09 23:44:48

标签: react-native

我正在尝试安装Plaid,但是一旦安装了Plaid依赖项,程序就会中断。这些依赖似乎破坏了我的应用程序...

“ body-parser”:“ ^ 1.19.0”,

“表达”:“ ^ 4.17.1”,

“节点”:“ ^ 12.4.0”,

“格子”:“ ^ 4.0.0”,

“ server.js”:“ ^ 1.0.0”

我尝试在另一台计算机上安装仍然无法正常工作。我尝试删除node_modules,但仍然无法正常工作。但这似乎是我上面列出的模块之一,因为安装这些模块会破坏程序。

这是我收到的错误消息,但有时模块会更改为其他错误消息,但始终无法从以下位置解析模块...模块不存在

错误:捆绑失败:错误:无法解析events中的模块C:\Users\Peters-Laptop\Desktop\PayMe\payme\node_modules\express\lib\express.js:急速模块图中不存在模块events

这可能与https://github.com/facebook/react-native/issues/4968有关 要解决此问题,请尝试以下操作:   1.清除值班员手表:watchman watch-del-all。   2.删除node_modules文件夹:rm -rf node_modules && npm install。   3.重置Metro Bundler缓存:rm -rf /tmp/metro-bundler-cache-*npm start -- --reset-cache。   4.删除急速缓存:rm -rf /tmp/haste-map-react-native-packager-*。     在ModuleResolver.resolveDependency(C:\ Users \ Peters-Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ node-haste \ DependencyGraph \ ModuleResolution.js:139:15)     在ResolutionRequest.resolveDependency(C:\ Users \ Peters-Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ node-haste \ DependencyGraph \ ResolutionRequest.js:49:18)     在DependencyGraph.resolveDependency(C:\ Users \ Peters-Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ node-haste \ DependencyGraph.js:218:16)     在Object.resolve(C:\ Users \ Peters-Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ lib \ transformHelpers.js:141:30)在dependency.map.result(C:\ Users \ Peters- Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ DeltaBundler \ traverseDependencies.js:373:31)     在Array.map()     在resolveDependencies(C:\ Users \ Peters-Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ DeltaBundler \ traverseDependencies.js:369:18)     在C:\ Users \ Peters-Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ DeltaBundler \ traverseDependencies.js:188:33     在Generator.next()     在步骤(C:\ Users \ Peters-Laptop \ Desktop \ PayMe \ payme \ node_modules \ metro \ src \ DeltaBundler \ traverseDependencies.js:298:30)

0 个答案:

没有答案