Node.js Syntax Error:Unexpected Number

Im trying to setup raspberry pi with node.js as stated in the Instructables here : http://www.instructables.com/id/Blynk-JavaScript-in-20-minutes-Raspberry-Pi-Edison/

I can run blynk.js ‘auth code’ perfectly and get this response from Pi:

pi@raspberrypi ~ $ blynk.js ‘my auth code’
OnOff mode
Connecting to SSL: cloud.blynk.cc 8441
Connected
Authorized
Blynk ready.

But when I run the blynk-test.js I get this error:
pi@raspberrypi ~ $ sudo node blynk-test.js
/home/pi/blynk-test.js:1
nction (exports, require, module, __filename, __dirname) { JsOsaDAS1.001.00bpl
^^^^
SyntaxError: Unexpected number
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 Function.Module.runMain (module.js:501:10)
at startup (node.js:129:16)
at node.js:814:3

Im new to raspberry pi and would like to setup my 8ch relay board to control more than just the ON and OFF as with the Get Started guide (which I did manage to do)

Thanks in advance

It must be an error in your blynk-test.js.
Please re-check it. Could you post it here? (don’t forget to post as pre-formatted text)

Here it is, its pretty much a copy and paste from the instructables but this is copied from my blynk-test.js
If I copy it to Xcode and run as javascript it gives a syntax at line 1: Cant find Variable “require”

var Blynk = require(‘blynk-library’);

var AUTH = ‘my auth code’;

var blynk = new Blynk.Blynk(AUTH);

var v1 = new blynk.VirtualPin(1);
var v9 = new blynk.VirtualPin(9);

v1.on(‘write’, function(param) {
console.log(‘V1:’, param);
});

v9.on(‘read’, function() {
v9.write(new Date().getSeconds());
});

blynk.on(‘connect’, function() { console.log(“Blynk ready.”); });
blynk.on(‘disconnect’, function() { console.log(“DISCONNECT”); });