{"id":119,"hash":"3d6b9653ef0897ef531e666e045208c59fb8b5d0999a7539b74546def4dd90c6","pattern":"npm install error - unable to get local issuer certificate","full_message":"I am getting an unable to get local issuer certificate error when performing an npm install:\n\ntypings ERR! message Unable to read typings for \"es6-shim\". You should check the\n entry paths in \"es6-shim.d.ts\" are up to date\ntypings ERR! caused by Unable to connect to \"https://raw.githubusercontent.com/D\nefinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6-shim\n/es6-shim.d.ts\"\ntypings ERR! caused by unable to get local issuer certificate\n\nI have recently update to node 4 from a much earlier version and it sounds like node is much more strict when these kind of problems arise.\n\nThere is an issue discussed here which talks about using ca files, but it's a bit beyond my understanding and I'm unsure what to do about it.\n\nI am behind a corporate firewall, but I can get to the url fine in a browser without any restriction.\n\nDoes anyone have any further insight into this issue and what possible solutions there are?\n\nI'm wondering about reverting to node 0.12 in the meantime :(","ecosystem":"npm","package_name":"node.js","package_version":null,"solution":"Typings can be configured with the ~/.typingsrc config file. (~ means your home directory)\n\nAfter finding this issue on github: https://github.com/typings/typings/issues/120, I was able to hack around this issue by creating ~/.typingsrc and setting this configuration:\n\n{\n  \"proxy\": \"http://<server>:<port>\",\n  \"rejectUnauthorized\": false\n}\n\nIt also seemed to work without the proxy setting, so maybe it was able to pick that up from the environment somewhere.\n\nThis is not a true solution, but was enough for typings to ignore the corporate firewall issues so that I could continue working. I'm sure there is a better solution out there.","confidence":0.95,"source":"stackoverflow","source_url":"https://stackoverflow.com/questions/36494336/npm-install-error-unable-to-get-local-issuer-certificate","votes":209,"created_at":"2026-04-19T04:41:21.899831+00:00","updated_at":"2026-04-19T04:51:03.647629+00:00"}