{"action":"created","issue":{"url":"https://api.github.com/repos/imyller/bitbake-npm/issues/3","labels_url":"https://api.github.com/repos/imyller/bitbake-npm/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/imyller/bitbake-npm/issues/3/comments","events_url":"https://api.github.com/repos/imyller/bitbake-npm/issues/3/events","html_url":"https://github.com/imyller/bitbake-npm/issues/3","id":78555131,"number":3,"title":"unpack will fail if there is anywhere in the parent path of bitbake a node_modules folder","user":{"login":"ephraim","id":20429,"avatar_url":"https://avatars.githubusercontent.com/u/20429?v=3","gravatar_id":"","url":"https://api.github.com/users/ephraim","html_url":"https://github.com/ephraim","followers_url":"https://api.github.com/users/ephraim/followers","following_url":"https://api.github.com/users/ephraim/following{/other_user}","gists_url":"https://api.github.com/users/ephraim/gists{/gist_id}","starred_url":"https://api.github.com/users/ephraim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ephraim/subscriptions","organizations_url":"https://api.github.com/users/ephraim/orgs","repos_url":"https://api.github.com/users/ephraim/repos","events_url":"https://api.github.com/users/ephraim/events{/privacy}","received_events_url":"https://api.github.com/users/ephraim/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-20T14:48:04Z","updated_at":"2015-05-20T15:17:07Z","closed_at":null,"body":"Guess bitbake is install under /home/user/Projects/bitbake and /home/user/node_modules is existing.\r\n\r\nnpm-fetch will download the module to /home/user/node_modules rather than to sources/downloads/npm/..... \r\n\r\nThe download will succeed but the unpack will fail then, as the folder below sources/downloads/npm/... is empty.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/imyller/bitbake-npm/issues/comments/103922910","html_url":"https://github.com/imyller/bitbake-npm/issues/3#issuecomment-103922910","issue_url":"https://api.github.com/repos/imyller/bitbake-npm/issues/3","id":103922910,"user":{"login":"ephraim","id":20429,"avatar_url":"https://avatars.githubusercontent.com/u/20429?v=3","gravatar_id":"","url":"https://api.github.com/users/ephraim","html_url":"https://github.com/ephraim","followers_url":"https://api.github.com/users/ephraim/followers","following_url":"https://api.github.com/users/ephraim/following{/other_user}","gists_url":"https://api.github.com/users/ephraim/gists{/gist_id}","starred_url":"https://api.github.com/users/ephraim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ephraim/subscriptions","organizations_url":"https://api.github.com/users/ephraim/orgs","repos_url":"https://api.github.com/users/ephraim/repos","events_url":"https://api.github.com/users/ephraim/events{/privacy}","received_events_url":"https://api.github.com/users/ephraim/received_events","type":"User","site_admin":false},"created_at":"2015-05-20T15:17:07Z","updated_at":"2015-05-20T15:17:07Z","body":"I did no special settings or so. :(\r\n\r\nfor bcryptjs I used this recipe stuff:\r\n\r\nbcryptjs_2.1.0.bb\r\n----\r\nSUMMARY = \"Optimized bcrypt in plain JavaScript with zero dependencies. Compatible to 'bcrypt'.\"\r\nSECTION = \"nodejs/module\"\r\nLICENSE = \"MIT\"\r\nLIC_FILES_CHKSUM = \"file://LICENSE;md5=d99a4f4253fea793a1256aef626aa6e5\"\r\n\r\nPR = \"r0\"\r\n\r\nrequire node.inc\r\n\r\n\r\n----\r\n\r\nnode.inc\r\n----\r\nNODEVERSION ?= \"${PV}\"\r\nNODENAME ?= \"${PN}\"\r\nSRC_URI = \"npm://${NODENAME};version=${NODEVERSION}\"\r\nS = \"${WORKDIR}/npm\"\r\n\r\ninherit npm-install npm-fetch\r\n\r\ndo_install() {\r\n\tinstall -d ${D}${libdir}/node_modules/${NODENAME}\r\n\tfor i in $(find ${S} -type f -a \\( -name '*.json' -or -name '*.js' -or -name '*.html' -or -name '*.node' -or -name '*.png' -or -name '*.conf' -or -name '*.css' -or -executable \\) | grep -v test) ; do\r\n\t\trel=$(echo \"$i\" | sed \"s#${S}/##\")\r\n\t\tif [ ! -d ${D}${libdir}/node_modules/${NODENAME}/$(dirname $rel) ] ; then\r\n\t\t\tmkdir -p ${D}${libdir}/node_modules/${NODENAME}/$(dirname $rel)\r\n\t\tfi\r\n\t\tcp ${S}/$rel ${D}${libdir}/node_modules/${NODENAME}/$(dirname $rel)\r\n\tdone\r\n}\r\n\r\nFILES_${PN} += \"${libdir}/node_modules\"\r\n"}}