作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在迁移 JHipster到 Yeoman 0.20.1,以便为 Yeoman 1.0 做准备。
在流程结束时,我们通常:
npm install
和 bower install
grunt wiredep
这一直有效,而且 here is the current code运行安装过程。
自从我迁移到 Yeoman 0.20.1 后,我们仍然有:
installDependencies
函数被调用我已经完成了。运行 npm install & bower install 为您安装所需的依赖项。如果失败,请尝试自己运行命令。
但实际上没有安装发生! NPM 和 Bower 没有安装任何东西,我们的 Grunt 任务也没有被调用。请注意,如果我手动调用它们,它们会正常工作。
如果尝试调试它,它看起来像 this method没有被调用。
谁能帮我解决这个问题?
最佳答案
我觉得 run loop 可能会在 end
事件被触发后完成。 installDependencies
安排安装方法在 install
优先级期间运行。如果运行循环完成,它们将不会运行。
您应该能够随时调用 installDependencies
而不必担心 end
事件回调。如果您想模仿当前的行为,请在名为 end
的方法中调用 installDependencies
。
作为 installDependencies API 的旁注,您不再需要手动指定 skipInstall
(现在是自动的)。
关于yeoman - 为 Yeoman 1.0 做准备 -> this.installDependencies 不再工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30592237/
我正在迁移 JHipster到 Yeoman 0.20.1,以便为 Yeoman 1.0 做准备。 在流程结束时,我们通常: 运行 npm install 和 bower install 使用回调函数
我是一名优秀的程序员,十分优秀!