Skip to content

You need to update yo to at least 1.7.1 #1938

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
ghost opened this issue May 30, 2016 · 12 comments
Closed
1 task

You need to update yo to at least 1.7.1 #1938

ghost opened this issue May 30, 2016 · 12 comments

Comments

@ghost
Copy link

ghost commented May 30, 2016

I'm getting this error on angular-fullstack version even my yo version is on 1.8.3

events.js:160
throw er; // Unhandled 'error' event
^

Error: ERROR: You need to update yo to at least 1.7.1 (npm i -g yo)
at /Users/apple/.node/lib/node_modules/generator-angular-fullstack/generators/generator-base.js:51:15
at tryCatcher (/Users/apple/.node/lib/node_modules/generator-angular-fullstack/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/apple/.node/lib/node_modules/generator-angular-fullstack/node_modules/bluebird/js/release/promise.js:502:31)
at Promise._settlePromise (/Users/apple/.node/lib/node_modules/generator-angular-fullstack/node_modules/bluebird/js/release/promise.js:559:18)
at Promise._settlePromise0 (/Users/apple/.node/lib/node_modules/generator-angular-fullstack/node_modules/bluebird/js/release/promise.js:604:10)
at Promise._settlePromises (/Users/apple/.node/lib/node_modules/generator-angular-fullstack/node_modules/bluebird/js/release/promise.js:683:18)
at Async._drainQueue (/Users/apple/.node/lib/node_modules/generator-angular-fullstack/node_modules/bluebird/js/release/async.js:138:16)
at Async._drainQueues (/Users/apple/.node/lib/node_modules/generator-angular-fullstack/node_modules/bluebird/js/release/async.js:148:10)
at Immediate.Async.drainQueues as _onImmediate
at tryOnImmediate (timers.js:543:15)
at processImmediate as _immediateCallback
You have new mail in /var/mail/apple
canermac-3:posluga2 apple$

  • I understand that GitHub issues are not for tech support, but for questions specific to this generator, bug reports, and feature requests.
Item Version
generator-angular-fullstack x.x.x
Node x.x.x
npm x.x.x
Operating System OS X 10 / Windows 10 / Ubuntu 15.10 / etc
etc etc
Item Answer
Transpiler Babel / TypeScript
Markup HTML / Jade
CSS CSS / LESS / SCSS / Stylus
Router ngRoute / ui-router
Build Tool Grunt / Gulp
Client Tests Jasmine / Mocha
DB MongoDB / SQL
Auth Y / N
etc etc
@Awk34
Copy link
Member

Awk34 commented May 30, 2016

It works fine for me

@Koslun
Copy link
Member

Koslun commented May 31, 2016

You're getting this when you do what? And you're kinda supposed to fill in the details in those two tables at the end of your answer.

@Awk34
Copy link
Member

Awk34 commented May 31, 2016

@Koslun relevent commit: 58c9dbf

@Koslun
Copy link
Member

Koslun commented Jun 1, 2016

@Awk34 Ok, looking at the code it does seem like it should work. Switched stdout for the aforementioned version that should work and tested it out a bit using https://tonicdev.com/npm/semver just to be sure:

var semver = require("semver")

var validVersion = semver.satisfies(semver.clean('1.8.3'), '>= 1.7.1')

console.log('Version is valid: ' + validVersion); //outputs "Version is valid: true"

So if there's a bug it'd likely be with how the command is executed and what is finally sent as stdout. Figure it's also something that's more likely to only be an issue on some operating systems and why it might not have been caught earlier.

So posting your specs might help a lot @canercak (operating system, npm, node and generator version in particular).

@yalishizhude
Copy link

OS: win10
node: v6.2.0
npm: 3.8.9
yo: 1.8.4
unnamed qq screenshot20160601101035

@Awk34
Copy link
Member

Awk34 commented Jun 1, 2016

@yalishizhude I just tried with the same versions (Windows 10 x64):

$ node -v
v6.2.0

$ npm -v
3.8.9

$ yo --version
1.8.4

$ yo angular-fullstack

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

Out of the box I create an AngularJS app with an Express server.

# Client

? What would you like to write scripts with? (Use arrow keys)
> Babel
  TypeScript

@Koslun
Copy link
Member

Koslun commented Jun 1, 2016

@yalishizhude Does yo doctor give you any issues? Would just try just re-installing yeoman and angular-fullstack.

Is there some mysterious difference with picking angular-fullstack in the list of generators when running yo compared to doing yo angular-fullstack?

@Awk34
Copy link
Member

Awk34 commented Jun 1, 2016

@Koslun I tried with just running yo and selecting the generator; still worked.

@Awk34
Copy link
Member

Awk34 commented Jun 1, 2016

@Koslun #1944

@Koslun
Copy link
Member

Koslun commented Jun 1, 2016

Not sure how to reproduce this issue but with @Awk34's PR #1944 we can see the output and thus probably determine what's wrong.

@Awk34
Copy link
Member

Awk34 commented Jun 2, 2016

Install 3.7.5 and post what it shows

@Awk34 Awk34 closed this as completed Jun 2, 2016
@Awk34 Awk34 reopened this Jun 2, 2016
@Awk34
Copy link
Member

Awk34 commented Jun 16, 2016

Closed due to inactivity

@Awk34 Awk34 closed this as completed Jun 16, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants