I'm recently publishing my self-made packages in my own repo.
One of my package requires http-server, which is a nodejs package, to be installed globally.
http-server
However, it's apparent that, I can't declare this dependency in the Depends: or Pre-Depends: line of the deb control file.
Depends:
Pre-Depends:
I know I can just let the user run sudo npm i http-server -g, but I want to know if there is an elegant way to automatically do it.
sudo npm i http-server -g
2.1m questions
2.1m answers
60 comments
57.0k users