Open ShawnTe opened 7 years ago
@zckrs ^^
Thank you @shawnte.
I will try to fix today.
Thanks for making the time, @zckrs :)
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.
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.
@dandymi You need to use Node version 4 or higher.
daniele@socrate ~ $ node --version v4.2.6 daniele@socrate ~ $ npm --version 4.3.0
You use a old node version.
Catching the same error as @dandymi Updated node to latest and went back all the way to node 4.
@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
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
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.
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!