axemclion / react-native-cordova-plugin

Cordova Plugin Adapter for React Native
ISC License
440 stars 35 forks source link

[QUESTION] node_modules/.bin/cordova-plugin repair #34

Closed mint3000 closed 8 years ago

mint3000 commented 8 years ago

Hi, when I try running node_modules/.bin/cordova-plugin repair I get this error:

An error occured ===> 
 { [Error: ENOENT: no such file or directory, open '/Users/ryanh/REPOS/cm-living-portraits-rn/node_modules/react-native-cordova-plugin/platforms/android/assets/www/cordova.js']
  errno: -2,
  code: 'ENOENT',
  syscall: 'open',
  path: '/Users/ryanh/REPOS/cm-living-portraits-rn/node_modules/react-native-cordova-plugin/platforms/android/assets/www/cordova.js' }

Any suggestions on how to get the cordova.js file? I've tried removing react-native-cordova-plugin and reinstalling it but I never get the 'platforms/android/assets/www/cordova.js' file.

mint3000 commented 8 years ago

Nevermind, I was able to get this to work by running node_modules/.bin/cordova-plugin add and then running node_modules/.bin/cordova-plugin repair again.

Great plugin by the way!