Mac OSX package installation fails for any package installation Python


I recently reinstalled Atom after a OSX installation. Any package I try to install produces the following failure below.
The path Users/jupitor/.atom/ is correct.

Installing “script@3.18.1” failed.Hide output…

gyp info it worked if it ends with ok
gyp info using node-gyp@3.4.0
gyp info using node@6.9.5 | darwin | x64
gyp http GET
gyp WARN install got an error, rolling back install
gyp ERR! install error
gyp ERR! stack Error: self signed certificate in certificate chain
gyp ERR! stack at Error (native)
gyp ERR! stack at TLSSocket. (_tls_wrap.js:1079:38)
gyp ERR! stack at emitNone (events.js:86:13)
gyp ERR! stack at TLSSocket.emit (events.js:185:7)
gyp ERR! stack at TLSSocket._finishInit (_tls_wrap.js:603:8)
gyp ERR! stack at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:433:38)
gyp ERR! System Darwin 17.7.0
gyp ERR! command “/private/var/folders/sv/rtxhvdj55sldxkmfzxnfclx40000gn/T/AppTranslocation/6CBFD031-81AF-4D5F-862D-02570E94A11A/d/” “/private/var/folders/sv/rtxhvdj55sldxkmfzxnfclx40000gn/T/AppTranslocation/6CBFD031-81AF-4D5F-862D-02570E94A11A/d/” “install” “–runtime=electron” “–target=2.0.5” “–dist-url=” “–arch=x64” “–ensure”
gyp ERR! cwd /Users/jupitor/.atom
gyp ERR! node -v v6.9.5
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok


This might help