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

Followed the instruction but can't run the script. Am I missing something? #1

Open
paulmiard opened this issue Apr 1, 2015 · 5 comments

Comments

@paulmiard
Copy link

I followed the instructions and getting
./index.iced: line 3: syntax error near unexpected token '('
./index.iced: line 3: `sonos = require('sonos')'

if I try node index.iced I get
if config.sonosIpAddress == "detect"
^^^^^^
SyntaxError: Unexpected identifier
at Module._compile (module.js:439:25)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3


Might be due to the node version running it? 0.10.33

@ewiner
Copy link
Owner

ewiner commented Apr 1, 2015

Seems like it's trying to run the code as a bash script! Does running ./node_modules/.bin/iced index.iced work?

Your version of node is fine, same one I'm using at the moment.

@paulmiard
Copy link
Author

It works indeed! Thanks for the quick reply!
What made you think that was the issue?

Now I just get an error the first time I run the script and it gets published in slack :
Error: Error: Non-whitespace before first tag. Line: 0 Column: 1 Char: N

@ewiner
Copy link
Owner

ewiner commented Apr 1, 2015

Hmm... unfortunately that error is coming from the code in https://github.com/bencevans/node-sonos, but I'm not sure what's causing the problem and nothing similar is reported in that project.

What OS are you running, by the way?

@paulmiard
Copy link
Author

Oh ok. Well it's not a big deal it only happens when the script starts..
Running Mac OS 10.10.2 and bash 3.2.57
Thanks for the help!

@bryanelder
Copy link

^ I have the same error show up every time I run the script. Was there ever any fix for this?

Running Mac OS 10.11.4 Beta

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