Platformio-ide-terminal as a dependency

Hello.

I have platformio-ide-terminal installed for atom and it is working fine. I’m developing my own package and when I add platformio-ide-terminal as a dependency it fails to install the package in the package/node_modules directory?

$ apm install platformio-ide-terminal
Installing platformio-ide-terminal to /Users/jkary/.atom/packages ✓
$ apm view platformio-ide-terminal
platformio-ide-terminal
├── 2.9.1
├── https://github.com/platformio/platformio-atom-ide-terminal
├── A terminal package for Atom, complete with themes, API and more for PlatformIO IDE. Fork of terminal-plus.
├── 2806001 downloads
└── 864 stars

Run `apm install platformio-ide-terminal` to install this package.

$ apm install
Installing modules ✗
npm ERR! code E404
npm ERR! 404 Not Found: platformio-ide-terminal@2.9.1

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jkary/.atom/.apm/_logs/2019-06-10T21_34_16_902Z-debug.log

That’s because platformio-ide-terminal isn’t in the NPM registry. It’s an Atom package and can’t be used as a dependency like that. If you want your package to make use of the terminal that package provides, you will need to read the Flight Manual section on services.

You can use atom-package-deps to install additional Atom packages that yours does depend on. However, a user can still decide not to install your dependency, so it’s advised to handle that case.

1 Like