简体   繁体   English

如何在Ubuntu 14.04中安装yeoman?

[英]How to install yeoman in Ubuntu 14.04?

I want to create projects on angular, I used these instructionAll set, but when you call commandss: Install yo (yeoman) in Ubuntu 14.04 我想在angular上创建项目,我使用了这些instructionAll set,但是当你调用commandss时: 在Ubuntu 14.04中安装yo(yeoman)

All set, but when you call command yo angular displayed error: 全部设置,但是当你调用命令yo angular显示错误时:

yo: command not found

How to fix it? 怎么解决?

Quick fix is to put the following in your .bashrc file: export PATH=/usr/local/share/npm/bin:$PATH 快速修复是将以下内容放在.bashrc文件中: export PATH=/usr/local/share/npm/bin:$PATH

See more here 在这里查看更多

Are you sure you followed all those steps? 你确定你遵循了所有这些步骤吗?

Did you install both yeoman and the angular-generator with the -g flag? 你用-g标志安装了自耕农和角度发生器吗?

Does the npm command work? npm命令有效吗?

I'd check your .profile file to see if the PATH to npm/bin is included there. 我检查你的.profile文件,看看是否包含了到npm / bin的PATH。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM