node.js - 更新 Yeoman 给出 cb 从未被调用

标签 node.js npm homebrew yeoman

我正在使用 npm update -g -yo 将 yeoman 更新到最新版本。但我总是收到此错误:npm ERR! cb() 从未调用过!.

请注意,我最初安装了 Node ,然后我执行了npm cache clean -f,然后使用 Homebrew 重新安装了它,brew install -g node。而且我仍然遇到上面提到的相同错误。

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

有人可以给我建议吗?

非常感谢

最佳答案

请不要使用npm update -g目前;还是坏了。

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

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

一般来说,当您想要更新全局包时,请使用 npm install -g <package>@latest

关于node.js - 更新 Yeoman 给出 cb 从未被调用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28696711/

相关文章:

javascript - 窗口标题未正确显示 - Electron

node.js - 错误 : UNABLE_TO_VERIFY_LEAF_SIGNATURE Phonegap Installation

javascript - npm --> 错误 : Cannot find module 'readable-stream'

maven - 如何使用 brew 但没有 openjdk 安装 maven?

javascript - 在 Node :7 image; libgs. 中安装 ghostscript4js 所以找不到

node.js - fs writeFile 在应用程序根目录中创建临时文件

node.js - 环回+弹性beanstalk部署错误

javascript - 使用.nvm安装时如何选择节点版本

shell - OS X 10.9.2 : Error: SHA256 mismatch 中的 Homebrew 软件

ruby-on-rails - 由于 readline 错误,无法执行 "rails console"