Closed jacquesletesson closed 9 years ago
Yeoman does some caching. Is it possible that on a previous run it failed to download or extract the tarball? I believe the files end up in ~/.yeoman
, you can try looking there and removing them, then trying again. LMK if that worked
Hi !
i got exactly the same problem ... but i have no ~/.yeoman file to delete :( i'm using oh my zsh if it can help.
Thanks !
@Dravenrip Same here, I think it is because we install npm globally...
I'm going to try with a fresh install.
ah yes it's possible, i've done it globally too.
Take a look at ~/.cache/yeoman
and see if anything is there. On my machine, that's where the yeoman cache is located.
By "globally" you mean npm install -g generator-wordpress
right? That shouldn't have an effect.
Since it is more than one person, I am going to guess that it is not a fluke or weird caching flaw. @Toddses is right on where to check, you should be able to remove everything in that folder. If that still doesn't work, can you both run with --verbose
and paste that output here?
right Toddess, cache elements were in ~/.cache/yeoman for me. I cleaned this folder and everything goes well. Thanks for your help.
@Toddses Thank you!
@wesleytodd I empty the cache folder. While the installer was fetching the tarball, I got this error :
remote.directory('.', this.conf.get('wpDir'));
^
TypeError: Cannot read property 'directory' of undefined
at Generator.<anonymous> (/usr/local/lib/node_modules/generator-wordpress/app/index.js:216:10)
at Generator.<anonymous> (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/actions/remote.js:79:21)
at Stream.<anonymous> (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/lib/actions/fetch.js:70:21)
at Stream.emit (events.js:129:20)
at DestroyableTransform.onerror (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/download/node_modules/stream-combiner/index.js:36:18)
at DestroyableTransform.emit (events.js:129:20)
at onwriteError (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:250:10)
at onwrite (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:268:5)
at WritableState.onwrite (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:106:5)
at afterTransform (/usr/local/lib/node_modules/generator-wordpress/node_modules/yeoman-generator/node_modules/through2/node_modules/readable-stream/lib/_stream_transform.js:104:5)```
Oh, I think that means the download failed. We need to get error handling on there. Creating another ticket for that if anyone wants to claim it!
Closing this one in favor of that more explicit issue.
Hi guys,
Just to let you know that some core files are missing after installation. All the files listed after wp-includes folder are missing. See attached file.
Is it my config or a new bug?