Ask Your Question

Is it possible to specify an npm package as a catkin dependency?

asked 2015-02-18 23:25:52 -0500

justinhuang gravatar image

Specifically, I'm creating a package that uses yeoman, bower, and grunt. So I'd like for anyone to be able to run rosdep install mypackage and not only get nodejs, but also have something like npm install -g yo bower grunt-cli be run automatically.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-02-19 12:26:08 -0500

William gravatar image

No, but support could be added.

To do this you would need to add support for npm in rosdep. A good place to start would be to look at support for pip and gem in rosdep, especially gem since it was added recently. Then you could specify npm keys in the rosdep database and in your package's package.xml and have the rosdep CLI install them for you.

One caveat with all of these cross platform package managers is that when doing binary packaging, we cannot build a .deb for example of a package which depends on something that is not installed from apt-get.

edit flag offensive delete link more

answered 2015-02-19 03:21:44 -0500

gvdhoorn gravatar image

I think this is similar to Is it possible to have rosdep set-up a ubuntu ppa on your system as part of dependency validation?.

I remember there were rules in the rosdep database that actually did some scary stuff with add-apt-repository and even ran whole bash scripts, but they were removed (which I think was a good thing).

Perhaps @William or @Dirk Thomas can comment on the current state of support for 'alternative' package managers? Would xylem support this?

edit flag offensive delete link more



The support of PPA's is a little different, npm is simply just another package manager for rosdep to support, the PPA is configuration of a package manger which needs to be ensured. xylem won't be different from rosdep in this respect.

William gravatar image William  ( 2015-02-19 12:27:38 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-02-18 23:25:52 -0500

Seen: 283 times

Last updated: Feb 19 '15