【问题标题】:Cannot use arrow keys in npm command line不能在 npm 命令行中使用箭头键
【发布时间】:2017-11-12 22:20:14
【问题描述】:

我正在尝试设置 FireBase 功能,当我使用命令时

npm firebase init functions

我被要求为我设置的目录选择一个默认项目。我的列表已正确填充,但我无法使用箭头键选择选项。 (当我按下向上或向下,甚至进入时,什么都没有发生)

这是我的版本:

  1. Windows 10
  2. NODEJS v8.1.0
  3. npm v5.0.3
  4. FireBase v3.9.1

问题截图:

【问题讨论】:

    标签: android node.js firebase npm firebase-tools


    【解决方案1】:

    事实证明,您所要做的就是更新您的 Firebase CLI 工具,并降级 npm 版本。

    我通过将 NodeJS 降级到 v6.11.0 解决了这个问题。

    另外,我通过运行更新了我的 FireBase CLI

    npm install -g firebase-tools
    

    使用 nvm-windows 作为 npm 的版本控制器。

    应该做的伎俩。

    链接:nvm-windows

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2010-12-10
      • 2022-01-03
      • 1970-01-01
      • 2023-03-14
      • 2014-04-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多