使用wix @ react-native-navigation运行react-native应用程序时出错

时间:2019-03-29 10:18:08

标签: react-native wix-react-native-navigation

我安装了wix/react-native-navigation并按照所有必需的配置进行操作,以便能够在带React native的android中使用它。但是即使我的脚本是在package.json中配置的,我的npm run android也无法正常工作

"scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest",
    "lint": "eslint .",
    "android": "cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug"
  },
npm run android

cd ./android && ./gradlew app:assembleDebug && ./gradlew installDebug

'.' is not recognized as an internal or external command,
operable program or batch file.

npm ERR! code ELIFECYCLE'''

npm ERR! errno 1

npm ERR! Awesome@0.0.1 android: `cd ./android && ./gradlew app:assembleDebug 
&& ./gradlew installDebug`

npm ERR! Exit status 1

npm ERR!

npm ERR! Failed at the Awesome@0.0.1 android 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\z0041hhp\AppData\Roaming\npm-cache\_logs\2019-03-29T09_08_37_797Z-debug.log

1 个答案:

答案 0 :(得分:0)

我在Windows 10上也遇到类似的问题,我所做的是删除“ ./”,我有类似的东西

{name1:[1,2]}