0dp / generator-wp-bones

Yeoman generator to quickly install Bones Wordpress starter theme into your Wordpress theme folder
Other
68 stars 31 forks source link

npm error: looking for package.json in wrong dir #4

Closed 0dp closed 10 years ago

0dp commented 10 years ago

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

When running yo wp-themes from within wp themes dir, npm throws a series of errors because the package.json file is not to be found. The file is situated in /library/grunt/ and not wp-content/themes/package.json

npm ERR! install Couldn't read dependencies npm ERR! package.json ENOENT, open '/srv/http/edra/wp-content/themes/package.json' npm ERR! package.json This is most likely not a problem with npm itself. npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! System Linux 3.14.1-1-ARCH npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" npm ERR! cwd /srv/http/edra/wp-content/themes npm ERR! node -v v0.10.26 npm ERR! npm -v 1.4.3 npm ERR! path /srv/http/edra/wp-content/themes/package.json npm ERR! code ENOPACKAGEJSON npm ERR! errno 34 npm ERR! npm ERR! Additional logging details can be found in: npm ERR! /srv/http/edra/wp-content/themes/npm-debug.log npm ERR! not ok code 0 [odp@odp themes]$

GlennGeenen commented 10 years ago

I fixed this and opened a pull request: https://github.com/GeenenTijd/generator-wp-bones/commit/b6b27b01606c72c3f2b2a3e0b0d0173ed0786341

0dp commented 10 years ago

Thanks dude