React Native构建失败

时间:2019-03-16 15:41:00

标签: node.js react-native

我已经坚持了几天。不知道这个错误是什么意思。最后安装的库是react-native-svg,尽管在我第一次运行它时没有引起任何错误。不知道是什么问题

screenshot

C:\Users\femi\Signit>npm run android-windows

> Signit@0.0.1 android-windows C:\Users\femi\Signit
> react-native bundle --platform android --dev false --entry-file index.js - 
-bundle-output android/app/src/main/assets/index.android.bundle --assets- 
dest android/app/src/main/res && react-native run-android

Loading dependency graph...events.js:167
     throw er; // Unhandled 'error' event
     ^

Error: EIO: i/o error, lstat 'C:\Users\femi\Signit\node_modules\react- 
native\ReactAndroid\src\main\java\com\facebook\react\modules\location'
Emitted 'error' event at:
  at NodeWatcher.checkedEmitError(C:\Users\femi\Signit\node_modules\sane\src\
node_watcher.js:159:10)
  at Walker.emit (events.js:182:13)
  at C:\Users\femi\Signit\node_modules\walker\lib\walker.js:52:12
  at C:\Users\femi\Signit\node_modules\graceful-fs\polyfills.js:282:31
  at FSReqWrap.oncomplete (fs.js:154:21)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Signit@0.0.1 android-windows: `react-native bundle --platform 
android --dev false --entry-file index.js --bundle-output 
android/app/src/main/assets/index.android.bundle --assets-dest 
android/app/src/main/res && react-native run-android`

npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the Signit@0.0.1 android-windows script.
npm ERR! This is probably not a problem with npm. There is likely 
additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\femi\AppData\Roaming\npm-cache\_logs\2019-03- 
06T05_58_55_991Z-debug.log

0 个答案:

没有答案