我正在使用 yeoman 通过生成器主干来构建主干应用程序,但是,每次我运行 yobackbone
时,它最终会显示以下消息:
I'm all done. Running bower install for you to install the required dependencies. If this fails, try running the command yourself.
I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.
npm WARN package.json webdev@0.0.0 No description
npm WARN package.json webdev@0.0.0 No repository field.
npm WARN package.json webdev@0.0.0 No README data
然后,我的目录是空的。没有任何脚手架。
我采取的步骤是这样的:
- 创建目录:
mkdir test
- cd 进入测试:
cd test
- 运行生成器:
yoBackbone
我不知道还能做什么,我的目录总是显示为空!
最佳答案
我尝试按照您所描述的相同步骤进行操作,但无法重现该问题。
但是您可以尝试重新安装generator-backbone。
npm 缓存清理
npm install -g Generator-backbone@0.2.2
执行这些步骤后,如果您遇到同样的问题,请告诉我。
关于javascript - Yeoman 不会搭建 Backbone 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20635898/