【问题标题】:whwn i start run expo i get Error: GetEnv.NoBoolean: ture is not a boolean当我开始运行 expo 时出现错误:GetEnv.Boolean: ture is not a boolean
【发布时间】:2019-11-18 13:37:06
【问题描述】:
    $ expo start
    C:\Users\Amoory\AppData\Roaming\npm\node_modules\expo-cli\node_modules\getenv\lib\getenv.js:66
             throw new Error('GetEnv.NoBoolean: ' + value + ' is not a boolean.');
              ^

          Error: GetEnv.NoBoolean: ture is not a boolean.
    at Object.boolish (C:\Users\Amoory\AppData\Roaming\npm\node_modules\expo-cli\node_modules\getenv\lib\getenv.js:66:15)
    at Function.boolish (C:\Users\Amoory\AppData\Roaming\npm\node_modules\expo-cli\node_modules\getenv\lib\getenv.js:79:27)
    at Object.<anonymous> (C:\Users\Amoory\AppData\Roaming\npm\node_modules\expo-cli\bin\expo.js:17:14)
    at Module._compile (internal/modules/cjs/loader.js:956:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:973:10)
    at Module.load (internal/modules/cjs/loader.js:812:32)
    at Function.Module._load (internal/modules/cjs/loader.js:724:14)
    at Function.Module.runMain (internal/modules/cjs/loader.js:1025:10)
    at internal/main/run_main_module.js:17:11
error Command failed with exit code 1.
info 

Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

C:\Users\Amoory\Desktop\omar-1>

【问题讨论】:

  • 你有一个错字,ture 而不是true

标签: react-native npm expo yarnpkg


【解决方案1】:

您需要在使用GetEnv 加载的环境变量中将ture 更改为true

【讨论】:

猜你喜欢
  • 2022-11-05
  • 1970-01-01
  • 2015-11-01
  • 2021-06-02
  • 2017-04-01
  • 1970-01-01
  • 2019-06-06
  • 2022-07-01
  • 2016-06-24
相关资源
最近更新 更多