Skip to content
This repository has been archived by the owner on Jun 4, 2023. It is now read-only.

How to run AirSonos in Node? #234

Closed
Geraldf opened this issue Nov 5, 2015 · 1 comment
Closed

How to run AirSonos in Node? #234

Geraldf opened this issue Nov 5, 2015 · 1 comment

Comments

@Geraldf
Copy link

Geraldf commented Nov 5, 2015

I have a question. How do I run AirSonos with nodejs.

After cloning the git locally and running npm install.
I try to run : Node index.js I do get the following error.

geraldf@Geralds-MBP:~/Projects/airsonos$ node index.js
/Users/geraldf/Projects/airsonos/lib/airsonos.js:1
(function (exports, require, module, __filename, __dirname) { let Promise = re
                                                                  ^^^^^^^
SyntaxError: Unexpected identifier
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/geraldf/Projects/airsonos/index.js:1:80)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)

Any hint would be helpful.
thanks

@stephen
Copy link
Owner

stephen commented Nov 5, 2015

@stephen stephen closed this as completed Nov 5, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants