Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图弄清楚如何npm install && bower install --dev在 Yeoman 的角度生成器生成角度脚手架结束时实现自动化,并且没有找到任何与我的问题完全匹配的信息。
npm install && bower install --dev
有人能指出我正确的方向吗?
运行它,它将在完成脚手架后立即安装 npm 和 bower deps:
yo angular && npm install && bower install --dev
你也可以在你的.bashrc, .bashprofile,.zshrc文件中创建一个 shell 别名:
.bashrc
.bashprofile
.zshrc
alias ya='yo angular && npm install && bower install --dev'
然后只需重新启动终端并输入ya.
ya