gpt4 book ai didi

node.js - yo webapp 命令卡住(Windows 7)

转载 作者:太空宇宙 更新时间:2023-11-03 23:41:26 26 4
gpt4 key购买 nike

我在 Ubuntu 终端中运行 yo webapp 没有遇到任何问题。但是当我在 Windows 中运行它时,它此时卡住了 enter image description here

问题:如何修复它,使其不会在图中所示的位置卡住?

<小时/>

PS:只是为了将所有输出放在这里,尝试运行 yo webapp > output.txt 但它在第一个问题处停止。

     _-----_
| |
|--(o)--| .--------------------------.
`---------´ | Welcome to Yeoman, |
( _´U`_ ) | ladies and gentlemen! |
/___A___\ '__________________________'
| ~ |
__'.___.'__
´ ` |° ´ Y `

Out of the box I include HTML5 Boilerplate, jQuery, and a Gruntfile.js to build your app.
[[32m?[39m] What more would you like? (Press <space> to select)
[36m>[39m[32m[X][39m Bootstrap
[ ] Sass
[ ] Modernizr[?25lTerminate batch job (Y/N)?

最佳答案

结果发现 git bin 目录没有包含在 Windows 的 PATH 变量中。首先尝试手动运行 Bower,它说 git is not recognized...

解决方案。 Control Panel > System and Security > System > Advanced System Settings > Environment Variables > PATH在这里添加了 git bin,用 ; 分隔。在我的例子中 git bin 目录是 C:\Program Files (x86)\Git\bin

<小时/> PS:以防万一有人遇到同样的问题,我不会删除该问题:D

关于node.js - yo webapp 命令卡住(Windows 7),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23125253/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com