You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What are you trying to do?
I'm trying to use serialport-terminal in my terminal (iTerm).
What happens?
After installation npm i -g @serialport/terminal running serialport results in an error.
serialport-terminal --help
/usr/local/bin/serialport-terminal: line 1: //: is a directory
/usr/local/bin/serialport-terminal: line 2: syntax error near unexpected token `('
/usr/local/bin/serialport-terminal: line 2: `const { Select } = require('enquirer')'
What should have happened?
The program should have run the CLI and show me the help information.
Fix
Looks like the issue was introduced in fix: improve the options and output of terminal #1962, where the #!/usr/bin/env node line was commented. Uncommenting this line in the index.js of the installed serialport results in the expected behaviour.
I'd be happy to submit a PR for this if you want!
Code to Reproduce the Issue
$ npm i -g @serialport/terminal
$ serialport-terminal --help
Versions, Operating System and Hardware
serialport@terminal
serialport-terminal --version
8.0.6
Node.js v13.7.0
macOS Catalina v10.15.2
The text was updated successfully, but these errors were encountered:
Summary of Problem
(Please answer all 3)
I'm trying to use
serialport-terminal
in my terminal (iTerm).After installation
npm i -g @serialport/terminal
running serialport results in an error.The program should have run the CLI and show me the help information.
Looks like the issue was introduced in fix: improve the options and output of terminal #1962, where the
#!/usr/bin/env node
line was commented. Uncommenting this line in theindex.js
of the installed serialport results in the expected behaviour.I'd be happy to submit a PR for this if you want!
Code to Reproduce the Issue
Versions, Operating System and Hardware
The text was updated successfully, but these errors were encountered: