We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58c9dbf commit f8e1eadCopy full SHA for f8e1ead
1 file changed
src/generators/generator-base.js
@@ -14,11 +14,17 @@ lodash.mixin(s.exports());
14
export function genBase(self) {
15
self = self || this;
16
17
- let yoCheckPromise = genUtils.runCmd('yo --version').then(stdout => {
18
- if(!semver.satisfies(semver.clean(stdout), '>= 1.7.1')) {
19
- throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)');
20
- }
21
- });
+ let yoCheckPromise;
+ if(!process.env.CI) {
+ yoCheckPromise = genUtils.runCmd('yo --version').then(stdout => {
+ if(!semver.satisfies(semver.clean(stdout), '>= 1.7.1')) {
+ throw new Error('ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)');
22
+ }
23
+ });
24
+ } else {
25
+ // CI won't have yo installed
26
+ yoCheckPromise = Promise.resolve();
27
28
29
self.lodash = lodash;
30
self.yoWelcome = yoWelcome;
0 commit comments