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

modbus-tool doesnt work with nvm #3

Closed
animedbz16 opened this issue Feb 10, 2015 · 1 comment
Closed

modbus-tool doesnt work with nvm #3

animedbz16 opened this issue Feb 10, 2015 · 1 comment

Comments

@animedbz16
Copy link

I know this isn't the right project, but it appears the modbus-tool project is no longer available or maybe private now?

Either way I installed modbus-tool via NPM (https://www.npmjs.com/package/modbus-tool) while running node via nvm and attempted to run the executable, but received the following error:

[user@server ~]$ modbus-tool --help
bash: /path/to/home/dir/.nvm/v0.10.35/bin/modbus-tool: /usr/local/bin/node: bad interpreter: No such file or directory

This is due to the fact that node is not installed in /usr/local/bin/node, while the script appears to be hard-coded as such.

Changing the first line of the script to following corrects this, since it will use the appropriately loaded node from the environment

[user@server ~]$ head -n 1 /path/to/home/dir/.nvm/v0.10.35/lib/node_modules/modbus-tool/bin/modbus-tool
#! /usr/bin/env node
@Cloud-Automation
Copy link
Collaborator

Thanks for your input, but, as you mentioned this is not the modbus-tools repository. The Modbus Tools are no longer maintained, sorry.

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