{"id":3918,"date":"2016-04-27T00:46:28","date_gmt":"2016-04-27T00:46:28","guid":{"rendered":"http:\/\/www.garysieling.com\/blog\/?p=3918"},"modified":"2016-04-27T00:46:28","modified_gmt":"2016-04-27T00:46:28","slug":"fixing-typings-error-eacces-permission-denied-open-usersgary-configconfigstoretypings-json","status":"publish","type":"post","link":"https:\/\/www.garysieling.com\/blog\/fixing-typings-error-eacces-permission-denied-open-usersgary-configconfigstoretypings-json\/","title":{"rendered":"Fixing Typings error: EACCES: permission denied, open &#8216;\/Users\/gary\/.config\/configstore\/typings.json&#8217;"},"content":{"rendered":"<p>When I first tried to use Typings on my macbook, I got this error a lot:<\/p>\n<pre>\nError: EACCES: permission denied, open '\/Users\/gary\/.config\/configstore\/typings.json'\nYou don't have access to this file.\n\n    at Error (native)\n    at Object.fs.openSync (fs.js:634:18)\n    at Object.fs.readFileSync (fs.js:502:33)\n    at Object.create.all.get (\/usr\/local\/lib\/node_modules\/typings\/node_modules\/configstore\/index.js:35:26)\n    at Object.Configstore (\/usr\/local\/lib\/node_modules\/typings\/node_modules\/configstore\/index.js:28:44)\n    at Object.<anonymous> (\/usr\/local\/lib\/node_modules\/typings\/node_modules\/typings-core\/dist\/utils\/store.js:5:19)\n    at Module._compile (module.js:541:32)\n    at Object.Module._extensions..js (module.js:550:10)\n    at Module.load (module.js:456:32)\n    at tryModuleLoad (module.js:415:12)\n<\/pre>\n<p>If you try to hit this file directly, you&#8217;ll also get a permissions error:<\/p>\n<pre>\ncat \/Users\/gary\/.config\/configstore\/typings.json\ncat: \/Users\/gary\/.config\/configstore\/typings.json: Permission denied\n<\/pre>\n<p>If you sudo it, it will also work:<\/p>\n<pre lang=\"bash\">\nsudo cat \/Users\/gary\/.config\/configstore\/typings.json\n{\n\t\"clientId\": \"b0fc9b57-d999-47ae-af97-dd957d71a1b3\"\n}\n<\/pre>\n<p>The weird thing is that it&#8217;s in my own account, so I should own the file, but I don&#8217;t:<\/p>\n<pre lang=\"bash\">\nGarys-MBP:youtube gary$ ls -al \/Users\/gary\/.config\/configstore\/\ntotal 40\ndrwx------  7 gary  staff  238 Apr 26 20:48 .\ndrwxr-xr-x  8 gary  staff  272 Apr  1 21:54 ..\n-rw-------  1 gary  staff   76 Jan 25 11:40 bower-github.yml\n-rw-------  1 gary  staff   47 Jan 25 11:40 insight-bower.json\n-rw-------  1 root  staff   55 Apr 26 20:48 typings.json\n-rw-------  1 gary  staff   55 Jan 25 11:40 update-notifier-bower.json\n-rw-------  1 root  staff   55 Apr 26 20:48 update-notifier-typings.json\n<\/pre>\n<p>To fix these, run these commands:<\/p>\n<pre lang=\"bash\">\nsudo chown gary \/Users\/gary\/.config\/configstore\/typings.json\nsudo chown gary \/Users\/gary\/.config\/configstore\/update-notifier-typings.json\n<\/pre>\n<p>This is probably a sign you screwed up the install somehow (e.g. the global NPM registry is owned by a different user) so you may have further problems that require the same style of fix.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Fixing a permissions error with Typings + a mac<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[9],"tags":[302,557],"aioseo_notices":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3918"}],"collection":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/comments?post=3918"}],"version-history":[{"count":0,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/posts\/3918\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/media?parent=3918"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/categories?post=3918"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.garysieling.com\/blog\/wp-json\/wp\/v2\/tags?post=3918"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}