RobotWebTools / ros2-web-bridge

Bridging your browser to the ROS 2.0
Apache License 2.0
209 stars 68 forks source link

Installation tries to write to root-owned directory #170

Closed rgov closed 3 years ago

rgov commented 3 years ago

I am trying to install rclnodejs@0.10.3 which states that it supports ROS 2 "dashing".

I source the setup.bash script for my project and then run:

npm install rclnodejs@0.10.3

It looks like it is trying to modify a root-owned directory:

> rclnodejs@0.10.3 postinstall /home/user/my_project/node_modules/rclnodejs
> node scripts/generate_messages.js

Start to generate the JavaScript messages...
Caught error: Error: EACCES: permission denied, mkdir '/opt/ros/dashing/share/tf2_msgs/action/msg'
npm WARN saveError ENOENT: no such file or directory, open '/home/user/my_project/package.json'

The installation succeeds, but I'm not sure whether the configuration is broken.

rgov commented 3 years ago

Wrong repo, sorry.