【发布时间】:2016-11-27 05:55:34
【问题描述】:
我试图在我的 linux 环境中创建 yeoman 角度生成器,每当我执行 yo angular webapp 时,输出就会出现错误提示
致命错误:无法找到本地咕噜声。
当我通过find / -name "grunt" 在我的linux 环境中搜索grunt 时,这是输出
/root/.npm/registry.npmjs.org/grunt /root/.npm/grunt /root/sites/node_modules/grunt /root/sites/node_modules/grunt/lib/grunt /tmp/npm-2302-5b275c10/registry.npmjs.org/grunt /tmp/npm-11975-b7813b65/registry.npmjs.org/grunt /usr/bin/咕噜声 /usr/lib/node_modules/grunt /usr/lib/node_modules/grunt/bin/grunt /usr/lib/node_modules/grunt/lib/grunt /usr/lib/node_modules/grunt-cli/bin/grunt
现在,我很困惑,因为我已经全局安装了 Grunt,为什么它会搜索本地副本,为什么不使用我刚刚安装的全局 grunt?
【问题讨论】:
标签: angularjs node.js gruntjs yeoman