ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
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

3 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 2022-08-15 12:35:10 -0500

130s gravatar image

A few years later, npm support is added to rosdep in rosdep!692 and has been available since the version 0.20.0. I can't find any documentation about it though.

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

Question Tools

1 follower


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

Seen: 555 times

Last updated: Aug 15 '22