wesleytodd / YeoPress

A Yeoman generator for WordPress
Other
1.08k stars 163 forks source link

Error at beginning of yo wordpress #93

Closed g-kanoufi closed 10 years ago

g-kanoufi commented 10 years ago

Hello Wesley,

After i needed to re-install npm i have now this error with your generator:

undefined:17 } ^ SyntaxError: Unexpected token } at Object.parse (native) at Config.load (/usr/local/lib/node_modules/generator-wordpress/util/config.js:77:15) at new module.exports (/usr/local/lib/node_modules/generator-wordpress/util/config.js:15:21) at new Generator (/usr/local/lib/node_modules/generator-wordpress/app/index.js:65:14) at Environment.create (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/env/index.js:252:10) at Environment.run (/usr/local/lib/node_modules/yo/node_modules/yeoman-generator/lib/env/index.js:288:24) at init (/usr/local/lib/node_modules/yo/cli.js:95:7) at pre (/usr/local/lib/node_modules/yo/cli.js:113:3) at Object. (/usr/local/lib/node_modules/yo/cli.js:139:1) at Module._compile (module.js:456:26)

I have node v0.10.21 and yeoman v1.1.2

Thank you for your help

wesleytodd commented 10 years ago

That looks like a json parse error in your .yeopress file. Open that up and take a look at the syntax.

wesleytodd commented 10 years ago

Specifically the .yeopress file in your home directory ~/.yeopress

g-kanoufi commented 10 years ago

Hi Wesley,

Thank you, it was a comma on the last line of the .yeopress file on my home directory.

Sorry that i have bothered you with this stupid problem.

Guillaume Kanoufi

On 02 Mar 2014, at 01:14, Wes Todd notifications@github.com wrote:

Specifically the .yeopress file in your home directory ~/.yeopress

— Reply to this email directly or view it on GitHub.

wesleytodd commented 10 years ago

No problem @g-kanoufi glad I was able to help.