【问题标题】:Error running react-native application with wix@react-native-navigation使用 wix@react-native-navigation 运行 react-native 应用程序时出错
【发布时间】:2019-08-20 06:17:06
【问题描述】:

我安装了 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

【问题讨论】:

  • 你在linux吗?

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


【解决方案1】:

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

"scripts": {
  ...
  "android": "cd android && gradlew app:assembleDebug && gradlew installDebug"
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-11-11
    • 2019-02-04
    • 1970-01-01
    • 1970-01-01
    • 2018-12-03
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多