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

Cannot run an npx command in an exec node after upgrading from addon v15 to v17 #1818

Open
RomainGx opened this issue Feb 4, 2024 · 6 comments

Comments

@RomainGx
Copy link

RomainGx commented Feb 4, 2024

Problem/Motivation

Hello, I got a flow that contains an exec node which runs an npx command. It ran well using add-node-red version 15. But I recently upgraded to version 17 and now I get an error:

  • Without double quotes around the command (that's what I had before the update), the command runs indefinitely
  • With double quotes around the command it fails fast:
{
    code: 127,
    message: Command failed: "npx tydom-client some other params"
/bin/bash: line 1: npx tydom-client some other params: No such file or directory
}

Example of npx command: npx tydom-client some other params

Expected behavior

The exec node should run an npx command without error.

Please also note that it works correctly when running a standalone NodeRed instance using npx instead of nom run. Npx does not work either with nodered-addon

Actual behavior

The exec node runs my npx command indefinitely.

Steps to reproduce

  • Add an exec node with command npx cowsay hello (exec mode, not spawn)
  • Run it: it will never stop until you kill it
@RomainGx
Copy link
Author

Edited:

  • I have tried running npx instead of nom run: it does not work either
  • I installed a standalone NodeRed instance and npx works well

Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label Mar 12, 2024
@RomainGx
Copy link
Author

The problem remains unsolved

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label Mar 13, 2024
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added stale There has not been activity on this issue or PR for quite some time. and removed stale There has not been activity on this issue or PR for quite some time. labels Apr 12, 2024
Copy link

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues.
Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍
This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

@github-actions github-actions bot added the stale There has not been activity on this issue or PR for quite some time. label May 13, 2024
@RomainGx
Copy link
Author

The problem remains. I abandonned the addon and installed a standalone node-red instance in another VM

@github-actions github-actions bot removed the stale There has not been activity on this issue or PR for quite some time. label May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant