{"action":"created","issue":{"url":"https://api.github.com/repos/olefredrik/FoundationPress/issues/468","labels_url":"https://api.github.com/repos/olefredrik/FoundationPress/issues/468/labels{/name}","comments_url":"https://api.github.com/repos/olefredrik/FoundationPress/issues/468/comments","events_url":"https://api.github.com/repos/olefredrik/FoundationPress/issues/468/events","html_url":"https://github.com/olefredrik/FoundationPress/issues/468","id":106929858,"number":468,"title":"NPM build error","user":{"login":"oksodavid","id":1672487,"avatar_url":"https://avatars.githubusercontent.com/u/1672487?v=3","gravatar_id":"","url":"https://api.github.com/users/oksodavid","html_url":"https://github.com/oksodavid","followers_url":"https://api.github.com/users/oksodavid/followers","following_url":"https://api.github.com/users/oksodavid/following{/other_user}","gists_url":"https://api.github.com/users/oksodavid/gists{/gist_id}","starred_url":"https://api.github.com/users/oksodavid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oksodavid/subscriptions","organizations_url":"https://api.github.com/users/oksodavid/orgs","repos_url":"https://api.github.com/users/oksodavid/repos","events_url":"https://api.github.com/users/oksodavid/events{/privacy}","received_events_url":"https://api.github.com/users/oksodavid/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-17T07:57:38Z","updated_at":"2015-09-23T08:08:03Z","closed_at":null,"body":"Hi,\r\nOriginally I had Node4.0 but now have v0.12.5 after reading threads on similar issues.\r\nAny help really appreciated. Here's the log.\r\n\r\n0 info it worked if it ends with ok\r\n1 verbose cli [ 'node', '/usr/local/bin/npm', 'run', 'build' ]\r\n2 info using npm@2.11.2\r\n3 info using node@v0.12.5\r\n4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]\r\n5 info prebuild foundationpress@1.4.0\r\n6 info build foundationpress@1.4.0\r\n7 verbose unsafe-perm in lifecycle true\r\n8 info foundationpress@1.4.0 Failed to exec build script\r\n9 verbose stack Error: foundationpress@1.4.0 build: `grunt build`\r\n9 verbose stack Exit status 3\r\n9 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/lifecycle.js:213:16)\r\n9 verbose stack     at EventEmitter.emit (events.js:110:17)\r\n9 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/lib/utils/spawn.js:24:14)\r\n9 verbose stack     at ChildProcess.emit (events.js:110:17)\r\n9 verbose stack     at maybeClose (child_process.js:1015:16)\r\n9 verbose stack     at Process.ChildProcess._handle.onexit (child_process.js:1087:5)\r\n10 verbose pkgid foundationpress@1.4.0\r\n11 verbose cwd /wp-content/themes/theme\r\n12 error Darwin 10.8.0\r\n13 error argv \"node\" \"/usr/local/bin/npm\" \"run\" \"build\"\r\n14 error node v0.12.5\r\n15 error npm  v2.11.2\r\n16 error code ELIFECYCLE\r\n17 error foundationpress@1.4.0 build: `grunt build`\r\n17 error Exit status 3\r\n18 error Failed at the foundationpress@1.4.0 build script 'grunt build'.\r\n18 error This is most likely a problem with the foundationpress package,\r\n18 error not with npm itself.\r\n18 error Tell the author that this fails on your system:\r\n18 error     grunt build\r\n18 error You can get their info via:\r\n18 error     npm owner ls foundationpress\r\n18 error There is likely additional logging output above.\r\n19 verbose exit [ 1, true ]"},"comment":{"url":"https://api.github.com/repos/olefredrik/FoundationPress/issues/comments/142525299","html_url":"https://github.com/olefredrik/FoundationPress/issues/468#issuecomment-142525299","issue_url":"https://api.github.com/repos/olefredrik/FoundationPress/issues/468","id":142525299,"user":{"login":"olefredrik","id":1080017,"avatar_url":"https://avatars.githubusercontent.com/u/1080017?v=3","gravatar_id":"","url":"https://api.github.com/users/olefredrik","html_url":"https://github.com/olefredrik","followers_url":"https://api.github.com/users/olefredrik/followers","following_url":"https://api.github.com/users/olefredrik/following{/other_user}","gists_url":"https://api.github.com/users/olefredrik/gists{/gist_id}","starred_url":"https://api.github.com/users/olefredrik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olefredrik/subscriptions","organizations_url":"https://api.github.com/users/olefredrik/orgs","repos_url":"https://api.github.com/users/olefredrik/repos","events_url":"https://api.github.com/users/olefredrik/events{/privacy}","received_events_url":"https://api.github.com/users/olefredrik/received_events","type":"User","site_admin":false},"created_at":"2015-09-23T08:08:03Z","updated_at":"2015-09-23T08:08:03Z","body":"I think I might got it. Use nvm to install the most recent version of Node\r\n\r\n\r\n```nvm install 4.1.1``` and make sure you use the latest version by typing ```nvm use 4.1.1```\r\n\r\nThen clone a fresh version of the FoundationPress repository. And BEFORE you do a ```npm install```, replace the contents of package.json with the following\r\n\r\n```\r\n {\r\n  \"name\": \"foundationpress\",\r\n  \"title\": \"FoundationPress\",\r\n  \"version\": \"1.4.0\",\r\n  \"description\": \"FoundationPress is a WordPress starter theme based on Foundation 5 by Zurb\",\r\n  \"keywords\": [\r\n    \"FoundationPress\",\r\n    \"WordPress\",\r\n    \"starter theme\",\r\n    \"Foundation\",\r\n    \"semantic\",\r\n    \"mobile first\",\r\n    \"customizable\",\r\n    \"responsive\"\r\n  ],\r\n  \"homepage\": \"http://foundationpress.olefredrik.com/\",\r\n  \"bugs\": \"https://github.com/olefredrik/FoundationPress/issues\",\r\n  \"license\": \"MIT\",\r\n  \"main\": \"Gruntfile.js\",\r\n  \"repository\": {\r\n    \"type\": \"git\",\r\n    \"url\": \"https://github.com/olefredrik/FoundationPress.git\"\r\n  },\r\n  \"devDependencies\": {\r\n    \"bower\": \"~1.4.1\",\r\n    \"grunt\": \"~0.4.5\",\r\n    \"grunt-cli\": \"^0.1.13\",\r\n    \"grunt-contrib-compress\": \"~0.13.0\",\r\n    \"grunt-contrib-concat\": \"~0.3.0\",\r\n    \"grunt-contrib-copy\": \"~0.4.1\",\r\n    \"grunt-contrib-uglify\": \"~0.2.7\",\r\n    \"grunt-contrib-watch\": \"~0.5.3\",\r\n    \"grunt-sass\": \"~1.1.0-beta\",\r\n    \"grunt-string-replace\": \"~0.2.7\",\r\n    \"node-sass\": \"~3.3.0\",\r\n    \"time-grunt\": \"~1.1.0\"\r\n  },\r\n  \"scripts\": {\r\n    \"build\": \"grunt build\",\r\n    \"grunt\": \"grunt\",\r\n    \"postinstall\": \"bower install && grunt build\",\r\n    \"watch\": \"grunt watch\",\r\n    \"package\": \"grunt package\"\r\n  }\r\n}\r\n```\r\n\r\nSave the package.json file and type ```npm install``` in your terminal. I've verified that this solution works on my mac with OSX 10.10.5. \r\n\r\nCan you try this and let me know how it goes?\r\n"}}