Do you see any errors when run these commands?
$ cd ~/.atom/packages/platformio-ide-terminal/node_modules/pty.js/
$ npm install
Do you see any errors when run these commands?
$ cd ~/.atom/packages/platformio-ide-terminal/node_modules/pty.js/
$ npm install