{"action":"created","issue":{"url":"https://api.github.com/repos/meteor/meteor/issues/7711","repository_url":"https://api.github.com/repos/meteor/meteor","labels_url":"https://api.github.com/repos/meteor/meteor/issues/7711/labels{/name}","comments_url":"https://api.github.com/repos/meteor/meteor/issues/7711/comments","events_url":"https://api.github.com/repos/meteor/meteor/issues/7711/events","html_url":"https://github.com/meteor/meteor/issues/7711","id":173210941,"number":7711,"title":"[1.4.1.1] local packages ENOENT .npm missing","user":{"login":"zapaz","id":4560471,"avatar_url":"https://avatars.githubusercontent.com/u/4560471?v=3","gravatar_id":"","url":"https://api.github.com/users/zapaz","html_url":"https://github.com/zapaz","followers_url":"https://api.github.com/users/zapaz/followers","following_url":"https://api.github.com/users/zapaz/following{/other_user}","gists_url":"https://api.github.com/users/zapaz/gists{/gist_id}","starred_url":"https://api.github.com/users/zapaz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zapaz/subscriptions","organizations_url":"https://api.github.com/users/zapaz/orgs","repos_url":"https://api.github.com/users/zapaz/repos","events_url":"https://api.github.com/users/zapaz/events{/privacy}","received_events_url":"https://api.github.com/users/zapaz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-25T14:00:38Z","updated_at":"2016-08-27T21:25:17Z","closed_at":null,"body":"[1.4.1.1] local packages ENOENT .npm missing\r\n\r\nOn ‘meteor run’ got this error :\r\n\r\n> => Started MongoDB.\r\n> local:pack: updating npm dependencies -- diacritics, url, fs-extra...\r\n> /root/.meteor/packages/fourseven_scss/.3.9.0.1xdzbya++os+web.browser+web.cordova/plugin.compileScssBatch.os/npm/node_modules/meteor/promise/node_modules/meteor-promise/promise_server.js:165\r\n>       throw error;\r\n>       ^\r\n> \r\n> Error: ENOENT: no such file or directory, rename '/home/app/packages/local_pack/.npm/package-new-14mph1f' -> '/home/packages/local:pack/.npm/package'\r\n>     at Error (native)\r\n>     at Object.fs.renameSync (fs.js:681:18)\r\n\r\n\r\nLocal package ‘local:pack’ is linked inside packages folder into another directory:\r\n/home/app/packages/local:pack -> ../../packages/pack\r\n\r\nSeems meteor, some times take local:pack and other times a sanitized version local_pack\r\nMoreover it creates /home/app/packages/local_pack directory with .npm inside\r\n\r\nOne solution to get rid of the error is to add .npm directory manually inside all local packages /home/packages/*\r\n\r\nWith lot of local packages this script helps :\r\ncd /home/packages ; for i in * ; do cd $i ; mkdir .npm ; cd .. ; done\r\n"},"comment":{"url":"https://api.github.com/repos/meteor/meteor/issues/comments/242941719","html_url":"https://github.com/meteor/meteor/issues/7711#issuecomment-242941719","issue_url":"https://api.github.com/repos/meteor/meteor/issues/7711","id":242941719,"user":{"login":"valentinvichnal","id":8232674,"avatar_url":"https://avatars.githubusercontent.com/u/8232674?v=3","gravatar_id":"","url":"https://api.github.com/users/valentinvichnal","html_url":"https://github.com/valentinvichnal","followers_url":"https://api.github.com/users/valentinvichnal/followers","following_url":"https://api.github.com/users/valentinvichnal/following{/other_user}","gists_url":"https://api.github.com/users/valentinvichnal/gists{/gist_id}","starred_url":"https://api.github.com/users/valentinvichnal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentinvichnal/subscriptions","organizations_url":"https://api.github.com/users/valentinvichnal/orgs","repos_url":"https://api.github.com/users/valentinvichnal/repos","events_url":"https://api.github.com/users/valentinvichnal/events{/privacy}","received_events_url":"https://api.github.com/users/valentinvichnal/received_events","type":"User","site_admin":false},"created_at":"2016-08-27T21:25:17Z","updated_at":"2016-08-27T21:25:17Z","body":"+1"}}
{"actor":{"display_login":"valentinvichnal"}}