我将Reactive-Native0.15.0更新为0.18.1,现在它给出了下面的错误。(尝试使用react-native start
)
Error building DependencyGraph:
Error: Naming collision detected: /Users/mymac/research/react-native/rotater/ios-templates/node_modules/fbjs/lib/warning.js collides with /Users/mymac/research/react-native/rotater/ios-templates/node_modules/react-native/node_modules/fbjs/lib/warning.js
at HasteMap._updateHasteMap (HasteMap.js:132:13)
at HasteMap.js:103:28
at tryCallOne (/Users/mymac/research/react-native/rotater/ios-templates/node_modules/promise/lib/core.js:37:12)
at /Users/mymac/research/react-native/rotater/ios-templates/node_modules/promise/lib/core.js:103:15
at flush (/Users/mymac/research/react-native/rotater/ios-templates/node_modules/asap/raw.js:50:29)
at doNTCallback0 (node.js:428:9)
at process._tickCallback (node.js:357:13)
这件事的解决办法是什么?
发布于 2016-01-27 06:49:51
试试这个:
rm -rf node_modules/
npm i
npm i fbjs
find . -name 'fbjs' -print
rm -rf $TMPDIR/react-*
watchman watch-del-all
npm cache clean
升级到.18.1版本后,我也遇到了同样的问题,这个问题已经解决了,如果是我的话。
发布于 2016-01-26 22:25:16
您是否尝试删除node_modules文件夹,然后使用npm install
重新安装?
https://stackoverflow.com/questions/35028783
复制相似问题