4 ms·
Are you sure? $ node -v v0.10.17 $ yo -v 1.0.0 # this works: $ yo webapp ... # this doesn't: $ yo ...
by nivertech 13y ago
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)
- ch0wn 13y agoGuessing here, but you might have some older, incompatible generators installed. Could you try to reinstall your global generators?
- nivertech 13y agoI 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
- ch0wn 13y agoThat shouldn't happen then. Would you mind opening an issue at https://github.com/yeoman/yo/issues https://github.com/yeoman/yo/issues about this?
- saidajigumi 13y agoFor those following along at home, this issue is now tracked at: https://github.com/yeoman/yo/issues/69 https://github.com/yeoman/yo/issues/69
- stephenplusplus 13y agoResolved :) But it would be great if you could test to make sure it's fixed.