Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in npm install with Ubuntu 22.04 + Humble #888

Open
vela-io opened this issue Jan 5, 2023 · 4 comments
Open

Error in npm install with Ubuntu 22.04 + Humble #888

vela-io opened this issue Jan 5, 2023 · 4 comments
Labels

Comments

@vela-io
Copy link

vela-io commented Jan 5, 2023

Description
Hi, everyone. I had this issue when i tried install rclnodejs with npm and source.

I have a simple project to library's test and i cant install successfully.

I had the same result to Ubuntu 20 with foxy.

  • Library Version: 0.21.4
  • ROS Version: Humble
  • Platform / OS: Ubuntu 22.04
  • Node version: v18.12.1
  • Npm version: 9.2.0

Steps To Reproduce

  1. source /opt/ros/humble/setup.zsh
  2. mkdir rclnodejs-test
  3. cd rlcnodejs-test
  4. npm init -y
  5. npm install rclnodejs

Expected Behavior
Install runs without errors

Actual Behavior

npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm ERR! code 1
npm ERR! path /home/rodrigo/rclnodejs-test/node_modules/@rclnodejs/ref-napi
npm ERR! command failed
npm ERR! command sh -c node-gyp rebuild

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/rodrigo/.npm/_logs/2023-01-05T22_09_58_874Z-debug-0.log
[error.log](https://github.com/RobotWebTools/rclnodejs/files/10355983/error.log)

i've tried update har-validation, uuid and requests but i had same result

@vela-io vela-io added the bug label Jan 5, 2023
@samidare210
Copy link

nodejs version needs to be between 10.23 - 17.x., try to install these version and install the package again

@vela-io
Copy link
Author

vela-io commented Jan 13, 2023

Thanks for you return, so the documentation is wrong?

The prerequisite is written as: "Nodejs version between 10.23.1 - 19.x."
And last feature merged include: "Add support for node v18 & v19 #884"

Steps was reproduced correctly and lib should install successfully

@vela-io vela-io closed this as completed Jan 13, 2023
@vela-io vela-io reopened this Jan 13, 2023
@wayneparrott
Copy link
Collaborator

@vela-io were you able to make any progress?
I setup a similar env as you described in window wls2. I had an issue with the humble setup.zsh so I reverted to using setup.bash which is my default. With that difference I am able to install rclnodejs with no issues. As a quick test could you try using either node 17 or 19. Note - I recently noticed an issue with node 18.3 but did not replicate the issue with node 18.2 or 18.1. I'll investigate that soon.

@kavikode
Copy link

please try
npm install rclnodejs@0.22.3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants