【发布时间】:2016-05-21 16:54:05
【问题描述】:
我在尝试运行 yeoman 时遇到错误。只是一个简单的版本请求。我刚刚使用 mac 安装程序 v6.2.0 安装了 Node.js 并运行了以下内容:
npm install -g yo
在安装没有错误后,我运行了yo -version:
/usr/local/lib/node_modules/yo/lib/cli.js:18
var tabtab = new (require('tabtab').Commands.default)({
^
TypeError: require(...).Commands.default is not a constructor
at Object.<anonymous> (/usr/local/lib/node_modules/yo/lib/cli.js:18:14)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)
at Function.Module._load (module.js:409:3)
at Function.Module.runMain (module.js:575:10)
at startup (node.js:160:18)
at node.js:449:3
【问题讨论】: