Ask Your Question
1

Installing ros-melodic-ros-base deletes npm, installing npm deletes ros. How can I have both?

asked 2019-07-23 11:39:09 -0600

tzinke gravatar image

I inherited a system that needs both ROS and npm to be complete. I had to re-flash the embedded computer that they were running on, and so now I am reinstalling and reconfiguring everything. However, when I run sudo apt install ros-melodic-ros-base, it deletes npm during installation. When I run sudo apt install npm, it deletes all of my ros stuff during installation. The person that set it up before doesn't know why this is happening, so he is unable to help me get both packages installed.

Why is this happening? Is there a way to have both? I will gladly give more detail if necessary, just let me know.

Thanks in advance

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2019-07-24 17:33:14 -0600

tzinke gravatar image

I got around the issue by installing nodejs and npm using these three commands:

sudo apt-get install curl python-software-properties
curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
sudo apt-get install nodejs

Not entirely sure why sudo apt-get install npm was problematic. Hopefully that helps someone other than myself!

edit flag offensive delete link more
1

answered 2019-07-24 16:54:25 -0600

tfoote gravatar image

It's likely that there are conflicting dependencies like in this issue: https://github.com/ros/rosdistro/issu...

You can ask apt to tell you more about why it's uninstalling the other one when it does so. You should copy and paste the output into your question for more help.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

3 followers

Stats

Asked: 2019-07-23 11:39:09 -0600

Seen: 161 times

Last updated: Jul 24