yeoman / yo

CLI tool for running Yeoman generators
http://yeoman.io
BSD 2-Clause "Simplified" License
3.84k stars 398 forks source link

Updates for Tutorial(codelab) #476

Open ShawnTe opened 7 years ago

ShawnTe commented 7 years ago

Thanks for the easy-to-follow tutorial!

A few minor discrepancies between the tutorial and actual response for update (totally not urgent, these did not prevent any functionality -- just wanted to help keep things current):

On http://yeoman.io/codelab/scaffold-app.html the following options in the CLI are missing from the tutorial page:

"Which Continuous Integration platform do you want? (Press to select) ❯◯ Travis ◯ CircleCi ◯ Jenkins (with Dockerfile) ◯ Wercker"

Then, asked for (in CLI): "Would you like a router? (Use arrow keys) ❯ React router None"

And on page: http://yeoman.io/codelab/local-storage.html Tis written: "We can confirm whether our data is being persisted to local storage by checking the Resources panel in Chrome DevTools and selecting Local Storage from the lefthand side:

In Chrome Dev Tools, this now is in (in mine anyways??): Application -- Storage -- Local Storage"

Cheers!

SBoudrias commented 7 years ago

@zckrs ^^

zckrs commented 7 years ago

Thank you @shawnte.

I will try to fix today.

addyosmani commented 7 years ago

Thanks for making the time, @zckrs :)

EricKramp commented 7 years ago

Hi,

This may warrant a new bug, but I thought I'd ask the thread. I was just working my way through that tutorial and it went fine until the build step (Step 8), any my build failed. I have confirmed that I'm using the latest version of node/npm, and yo version 1.8.5, basically a fresh install of everything.

Here's my npm log, and I'm happy to add any additional info.

npm-debug.txt

dandymi commented 7 years ago

Hi, I'm using yo version 1.8.5 and following strictly the tutorial, I always jump to this bug:

daniele@socrate /opt/projects/mytodo $ yo ? ========================================================================== We're constantly looking for ways to make yo better! May we anonymously report usage statistics to improve the tool over time? More info: https://github.com/yeoman/insight & http://yeoman.io ========================================================================== Yes ? 'Allo daniele! What would you like to do? Fountain Webapp

Make sure you are in the directory you want to scaffold into. This generator can also be run with: yo fountain-webapp

 _-----_     ╭───────────────────────╮
|       |    │      Bye from us!     │
|--(o)--|    │       Chat soon.      │

---------´ │ Yeoman team │ ( _´U_ ) │ http://yeoman.io │ /A\ /╰───────────────────────╯ | ~ |
__'._.'
´ |° ´ Y

/home/daniele/.npm-packages/lib/node_modules/generator-fountain-webapp/node_modules/fountain-generator/lib/Base.js:21 const {framework, modules, js} = this.options; ^

SyntaxError: Unexpected token { at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Module.require (module.js:354:17) at require (internal/module.js:12:17) at Object. (/home/daniele/.npm-packages/lib/node_modules/generator-fountain-webapp/node_modules/fountain-generator/index.js:2:9) at Module._compile (module.js:410:26) at Object.Module._extensions..js (module.js:417:10)

SBoudrias commented 7 years ago

@dandymi You need to use Node version 4 or higher.

dandymi commented 7 years ago

daniele@socrate ~ $ node --version v4.2.6 daniele@socrate ~ $ npm --version 4.3.0

zckrs commented 7 years ago

You use a old node version.

Last LTS node 4

cblair32 commented 7 years ago

Catching the same error as @dandymi Updated node to latest and went back all the way to node 4.

smcgarrigle commented 7 years ago

@cblair32 @dandymi - I had the exact same problem and I ended up uninstalling Node, NPM and NVM because i had older versions installed in odd locations

This stackoverflow was helpful (read all the answers) http://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x

I reinstalled node/npm/nvm with brew and the tutorial works now

Jogesh0x1 commented 7 years ago

Was getting same error as @dandymi

uninstalled node and installed latest version, from repair install and remove/clean option on windows, first did remove and then install.

Able to progress with steps now

olliebaum commented 6 years ago

I'm doing the tutorial now and have noticed the discrepancies @ShawnTe mentions are still there. I'm assuming the options I'm meant to select are none and none? It would be nice if that could be updated because I'm a complete Yeoman newbie and so got kinda foxed by this.