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 on find_button (Unexpected identifier) #27

Closed
BenRoe opened this issue Sep 3, 2016 · 2 comments
Closed

Error on find_button (Unexpected identifier) #27

BenRoe opened this issue Sep 3, 2016 · 2 comments

Comments

@BenRoe
Copy link

BenRoe commented Sep 3, 2016

I get an error if i execute the find_button script, but if i go into the node_modules folder node_modules/node-dash-button/bin/ and execute the script direct i works.
Any idea?

sudo node script/find_button

/home/pi/dasher/script/find_button:3
sudo node node_modules/node-dash-button/bin/findbutton
     ^^^^
SyntaxError: Unexpected identifier
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:528:28)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.runMain (module.js:590:10)
    at run (bootstrap_node.js:394:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:509:3
@Awk34
Copy link

Awk34 commented Oct 3, 2016

The scripts in the scripts folder are bash scripts, not JavaScript scripts. Notice the #!/bin/sh at the top?

@maddox
Copy link
Owner

maddox commented Oct 3, 2016

@Awk34 is correct. You need to just run them from the root of the project. sudo script/find_button

@maddox maddox closed this as completed Oct 3, 2016
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

3 participants