【问题标题】:I keep getting an" EIO: i/o error: when I use the expo init command我不断收到“EIO:i/o 错误:当我使用 expo init 命令时
【发布时间】:2020-07-18 08:24:26
【问题描述】:

最近刚刚通过 expo 研究了 React-Native 开发(这里是新手)。在 Linux 命令行上使用“expo init”命令并不断得到这个:

    at Object.readSync (fs.js:564:3)
at tryReadSync (fs.js:349:20)
at Object.readFileSync (fs.js:378:19)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1157:22)
at Module.load (internal/modules/cjs/loader.js:986:32)
at Function.Module._load (internal/modules/cjs/loader.js:879:14)
at Module.require (internal/modules/cjs/loader.js:1026:19)
at require (internal/modules/cjs/helpers.js:72:18)
at Object.<anonymous> (/home/onlyartist9/.nvm/versions/node/v12.18.2/lib/node_modules/expo-cli/node_modules/inquirer/node_modules/src/add/operator/multicast.ts:3:1)
at Module._compile (internal/modules/cjs/loader.js:1138:30)

有什么问题?

【问题讨论】:

    标签: javascript node.js reactjs react-native expo


    【解决方案1】:

    正在使用我猜不支持箭头选项的 Linux 命令行。浏览完expo init --help

    我可以选择我想要的模板,然后直接运行命令

    使用expo init -t [ProjectName] [TemplateType]

    TemplateType 有三种变体,即:“空白”、“标签”、“裸最小”。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-11-22
      • 2020-08-02
      • 1970-01-01
      • 1970-01-01
      • 2018-04-27
      • 2019-08-22
      相关资源
      最近更新 更多