{"action":"created","issue":{"url":"https://api.github.com/repos/brunch/handlebars-brunch/issues/45","labels_url":"https://api.github.com/repos/brunch/handlebars-brunch/issues/45/labels{/name}","comments_url":"https://api.github.com/repos/brunch/handlebars-brunch/issues/45/comments","events_url":"https://api.github.com/repos/brunch/handlebars-brunch/issues/45/events","html_url":"https://github.com/brunch/handlebars-brunch/issues/45","id":120994304,"number":45,"title":"Error with postinstall.js symlinking to handlebars on install","user":{"login":"MaffooBristol","id":3296828,"avatar_url":"https://avatars.githubusercontent.com/u/3296828?v=3","gravatar_id":"","url":"https://api.github.com/users/MaffooBristol","html_url":"https://github.com/MaffooBristol","followers_url":"https://api.github.com/users/MaffooBristol/followers","following_url":"https://api.github.com/users/MaffooBristol/following{/other_user}","gists_url":"https://api.github.com/users/MaffooBristol/gists{/gist_id}","starred_url":"https://api.github.com/users/MaffooBristol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaffooBristol/subscriptions","organizations_url":"https://api.github.com/users/MaffooBristol/orgs","repos_url":"https://api.github.com/users/MaffooBristol/repos","events_url":"https://api.github.com/users/MaffooBristol/events{/privacy}","received_events_url":"https://api.github.com/users/MaffooBristol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-12-08T12:12:06Z","updated_at":"2015-12-08T18:52:37Z","closed_at":null,"body":"##### Node v5.1.1, npm v3.3.12, latest handlebars-brunch, Centos 7\r\n\r\nNot sure if this is related to https://github.com/brunch/handlebars-brunch/issues/40 ?\r\n\r\nDoesn't seem to work even if I `npm install handlebars` first. Also seems to be entirely independent of node and npm version. (and even handlebars-brunch version, actually)\r\n\r\n```\r\n> handlebars-brunch@1.10.1 postinstall /var/www/html/plain-bear/client/node_modules/handlebars-brunch\r\n> node ./postinstall.js\r\n\r\nfs.js:945\r\n  return binding.symlink(preprocessSymlinkDestination(destination, type, path),\r\n                 ^\r\n\r\nError: ENOENT: no such file or directory, symlink '/var/www/html/plain-bear/client/node_modules/handlebars/dist/handlebars.js' -> '/var/www/html/plain-bear/client/node_modules/handlebars-brunch/dist/handlebars.js'\r\n    at Error (native)\r\n    at Object.fs.symlinkSync (fs.js:945:18)\r\n    at /var/www/html/plain-bear/client/node_modules/handlebars-brunch/postinstall.js:17:10\r\n    at Array.forEach (native)\r\n    at /var/www/html/plain-bear/client/node_modules/handlebars-brunch/postinstall.js:14:9\r\n    at Array.forEach (native)\r\n    at /var/www/html/plain-bear/client/node_modules/handlebars-brunch/postinstall.js:13:7\r\n    at Array.forEach (native)\r\n    at Object.<anonymous> (/var/www/html/plain-bear/client/node_modules/handlebars-brunch/postinstall.js:12:9)\r\n    at Module._compile (module.js:425:26)\r\n```\r\n\r\nSometimes I also get this error, which happened when I tried it with a clean copy of my codebase:\r\n```\r\nCannot find module '/root/plain-bear/client/node_modules/handlebars-brunch/postinstall.js'\r\n```\r\n\r\nI've got a circle-ci build that works fine, and it's fine on my local machine. Just *something* has broken on the server since trying to upgrade handlebars-brunch and I have no idea what it could be!"},"comment":{"url":"https://api.github.com/repos/brunch/handlebars-brunch/issues/comments/162979678","html_url":"https://github.com/brunch/handlebars-brunch/issues/45#issuecomment-162979678","issue_url":"https://api.github.com/repos/brunch/handlebars-brunch/issues/45","id":162979678,"user":{"login":"devel-pa","id":2742270,"avatar_url":"https://avatars.githubusercontent.com/u/2742270?v=3","gravatar_id":"","url":"https://api.github.com/users/devel-pa","html_url":"https://github.com/devel-pa","followers_url":"https://api.github.com/users/devel-pa/followers","following_url":"https://api.github.com/users/devel-pa/following{/other_user}","gists_url":"https://api.github.com/users/devel-pa/gists{/gist_id}","starred_url":"https://api.github.com/users/devel-pa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/devel-pa/subscriptions","organizations_url":"https://api.github.com/users/devel-pa/orgs","repos_url":"https://api.github.com/users/devel-pa/repos","events_url":"https://api.github.com/users/devel-pa/events{/privacy}","received_events_url":"https://api.github.com/users/devel-pa/received_events","type":"User","site_admin":false},"created_at":"2015-12-08T18:52:37Z","updated_at":"2015-12-08T18:52:37Z","body":"Then, I'm afraid that even if we are copying the files instead of linking will be an issue."}}