【问题标题】:Updating Yeoman gives cb never called更新 Yeoman 使 cb 从未被调用
【发布时间】:2015-02-24 13:10:32
【问题描述】:

我正在使用npm update -g -yo 将 yeoman 更新到最新版本。但我总是收到这个错误:npm ERR! cb() never called!

请注意,我最初安装了节点,然后我做了npm cache clean -f,然后用 Homebrew 重新安装了它,brew install -g node。而且我仍然遇到上述相同的错误。

所有这些都在 Mac 上的终端中。

有人可以给我建议吗?

非常感谢

【问题讨论】:

    标签: node.js npm homebrew yeoman


    【解决方案1】:

    请暂时不要使用npm update -g;还是坏了。

    我建议卸载并重新安装节点,然后更新npm 并安装yo

    brew uninstall node brew install -g node npm install -g npm@latest npm install -g yo@latest

    一般当你想更新一个全局包时,使用npm install -g <package>@latest

    【讨论】:

      猜你喜欢
      • 2013-03-01
      • 2021-06-02
      • 2018-03-20
      • 2021-04-22
      • 1970-01-01
      • 2018-09-19
      • 2019-12-18
      • 1970-01-01
      • 2021-02-19
      相关资源
      最近更新 更多