Live data from Hacker News

Yeoman 1.0 Released

yeoman.io

1–10 of 58 posts

Re: Yeoman 1.0 Released

#2
Yeoman is fantastic...I used it several months ago when deciding (foolishly, in retrospect) to learn both CoffeeScript and AngularJS at the same time while making an app. I had never put the effort into setting up grunt tasks manually...so working with automated building and testing were things I never had while developing with JS (which you can take to mean that my past work with JS has been mostly trivial).

Besides just being a great package overall, Yeoman really helped me appreciate how what seem like trivial niceties -- the speed of auto-build vs. stopping and restarting the local server and hitting Refresh -- can really make the difference between gradually losing interest because of the accumulation of small inconveniences and actually enjoying the development process enough to finish a project.

Re: Yeoman 1.0 Released

#6
post #5

does it work with latest node v0.10.17 ?

Yes.

Are you sure?

    $ node -v
    v0.10.17
    
    $ yo -v
    1.0.0
    
    # this works:
    $ yo webapp
    ...
    
    # this doesn't:
    $ yo
    ...
    fs.js:427
      return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                    ^
    TypeError: path must be a string
        at Object.fs.openSync (fs.js:427:18)
        at Object.fs.readFileSync (fs.js:284:15)
        at yoyo.Base.rootGeneratorName (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:533:24)
        at yoyo.Base._setStorage (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:542:34)
        at yoyo.Base (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:85:8)
        at new yoyo (/usr/local/lib/node_modules/yo/bin/yoyo.js:12:18)
        at Environment.create (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/env.js:366:10)
        at Environment.run (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/env.js:409:24)
        at init (/usr/local/lib/node_modules/yo/bin/yo:97:7)
        at pre (/usr/local/lib/node_modules/yo/bin/yo:109:3)

Re: Yeoman 1.0 Released

#9
post #5

Earlier quoted context omitted.

Yes.

Are you sure? $ node -v v0.10.17 $ yo -v 1.0.0 # this works: $ yo webapp ... # this doesn't: $ yo ... fs.js:427 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ TypeError: path must be a string at Object.fs.openSync (fs.js:427:18) at Object.fs.readFileSync (fs.js:284:15) at yoyo.Base.rootGeneratorName (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:533:24) at yo…

Guessing here, but you might have some older, incompatible generators installed. Could you try to reinstall your global generators?

Re: Yeoman 1.0 Released

#10
post #9

Earlier quoted context omitted.

Are you sure? $ node -v v0.10.17 $ yo -v 1.0.0 # this works: $ yo webapp ... # this doesn't: $ yo ... fs.js:427 return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode); ^ TypeError: path must be a string at Object.fs.openSync (fs.js:427:18) at Object.fs.readFileSync (fs.js:284:15) at yoyo.Base.rootGeneratorName (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/base.js:533:24) at yo…

Guessing here, but you might have some older, incompatible generators installed. Could you try to reinstall your global generators?

I wiped out all npm modules and reinstalled node. Still getting error. I installed yeoman using:

    sudo npm install -g yo generator-webapp grunt-contrib-compass
Post reply on HN