Apm Installing package "XXXXX" failed Error

at /usr/lib/atom/node_modules/settings-view/lib/package-manager.js:489:21
at exit (/usr/lib/atom/node_modules/settings-view/lib/package-manager.js:114:16)
at triggerExitCallback (/usr/lib/atom/src/buffered-process.js:280:9)
at bufferStream (/usr/lib/atom/src/buffered-process.js:301:9)
at Socket.stream.on (/usr/lib/atom/src/buffered-process.js:169:7)
at Socket.emit (events.js:187:15)
at Pipe._handle.close (net.js:606:12) /usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:194
if (this instanceof ReadStream)

RangeError: Maximum call stack size exceeded2019-08-24T05:00:00Z
at Function.[Symbol.hasInstance] ()
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:194:14)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)

Solution
edit archive /home/XXX/.atom /.apmrc
is your user(XXX)
add this:

http-proxy http://user:password@my.proxy:8000=true
https-proxy http://user:password@my.proxy:8000=true
strict-ssl=false

saved and closed
in the prompt write your package and install
example:
apm install XXXXX

Can you clarify what you mean by user:password@my.proxy? Are these something we have to substitute things with? I ask because I am having the same issue and just using those exact lines of code didn’t help.

hello, can you share your error code.

Installing atom-material-ui to /home/totallyhuman/.atom/packages /usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:194
    if (this instanceof ReadStream)
             ^

RangeError: Maximum call stack size exceeded
    at Function.[Symbol.hasInstance] (<anonymous>)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:194:14)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)
    at ReadStream (/usr/lib/node_modules/atom-package-manager/node_modules/graceful-fs/graceful-fs.js:195:28)

How have people installed Atom? Was it through atom.io?