Closed marcellodesales closed 10 years ago
node --harmony example.js
mdesales@Marcello-Work ~/dev/github/co-parallel (master) $ node --harmony example
/Users/mdesales/dev/github/co-parallel/example.js:22 function status(url) { ^ SyntaxError: Unexpected token 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:902:3
what's your node version?
make sure you have 0.11.x
Yeah I have the current 0.10.26 version...
Not sure what I did wrong, but I can't run the example...
mdesales@Marcello-Work ~/dev/github/co-parallel (master) $ npm install npm http GET https://registry.npmjs.org/co-thread/0.0.1 npm http GET https://registry.npmjs.org/co npm http GET https://registry.npmjs.org/co-request npm http GET https://registry.npmjs.org/mocha npm http GET https://registry.npmjs.org/should npm http 304 https://registry.npmjs.org/co-thread/0.0.1 npm http 304 https://registry.npmjs.org/co npm http 304 https://registry.npmjs.org/co-request npm http GET https://registry.npmjs.org/co-request/-/co-request-0.1.2.tgz npm http 200 https://registry.npmjs.org/should npm http GET https://registry.npmjs.org/should/-/should-3.3.0.tgz npm http 200 https://registry.npmjs.org/mocha npm http 200 https://registry.npmjs.org/co-request/-/co-request-0.1.2.tgz npm http 200 https://registry.npmjs.org/should/-/should-3.3.0.tgz npm http GET https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/commander/2.0.0 npm http GET https://registry.npmjs.org/growl npm http GET https://registry.npmjs.org/jade/0.26.3 npm http GET https://registry.npmjs.org/debug npm http GET https://registry.npmjs.org/diff/1.0.7 npm http GET https://registry.npmjs.org/glob/3.2.3 npm http GET https://registry.npmjs.org/mkdirp/0.3.5 npm http 304 https://registry.npmjs.org/request npm http GET https://registry.npmjs.org/json-stringify-safe npm http GET https://registry.npmjs.org/forever-agent npm http GET https://registry.npmjs.org/node-uuid npm http GET https://registry.npmjs.org/mime npm http GET https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/commander/2.0.0 npm http GET https://registry.npmjs.org/form-data npm http GET https://registry.npmjs.org/tough-cookie npm http GET https://registry.npmjs.org/tunnel-agent npm http GET https://registry.npmjs.org/http-signature npm http GET https://registry.npmjs.org/oauth-sign npm http GET https://registry.npmjs.org/hawk npm http GET https://registry.npmjs.org/aws-sign2 npm http 304 https://registry.npmjs.org/jade/0.26.3 npm http 304 https://registry.npmjs.org/diff/1.0.7 npm http 304 https://registry.npmjs.org/glob/3.2.3 npm http 304 https://registry.npmjs.org/json-stringify-safe npm http 200 https://registry.npmjs.org/debug npm http 200 https://registry.npmjs.org/mkdirp/0.3.5 npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz npm http 304 https://registry.npmjs.org/forever-agent npm http 304 https://registry.npmjs.org/node-uuid npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/growl npm http 304 https://registry.npmjs.org/form-data npm http 304 https://registry.npmjs.org/tunnel-agent npm http 304 https://registry.npmjs.org/qs npm http 304 https://registry.npmjs.org/http-signature npm http 304 https://registry.npmjs.org/oauth-sign npm http 304 https://registry.npmjs.org/hawk npm http 304 https://registry.npmjs.org/aws-sign2 npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.5.tgz npm http 304 https://registry.npmjs.org/tough-cookie npm http GET https://registry.npmjs.org/combined-stream npm http GET https://registry.npmjs.org/async npm http GET https://registry.npmjs.org/assert-plus/0.1.2 npm http GET https://registry.npmjs.org/asn1/0.1.11 npm http GET https://registry.npmjs.org/ctype/0.5.2 npm http GET https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/graceful-fs npm http GET https://registry.npmjs.org/inherits npm http GET https://registry.npmjs.org/punycode npm http GET https://registry.npmjs.org/hoek npm http GET https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/cryptiles npm http GET https://registry.npmjs.org/sntp npm http GET https://registry.npmjs.org/mkdirp/0.3.0 npm http GET https://registry.npmjs.org/commander/0.6.1 npm http 304 https://registry.npmjs.org/combined-stream npm http 304 https://registry.npmjs.org/async npm http 304 https://registry.npmjs.org/asn1/0.1.11 npm http 304 https://registry.npmjs.org/assert-plus/0.1.2 npm http 304 https://registry.npmjs.org/ctype/0.5.2 npm http 304 https://registry.npmjs.org/minimatch npm http GET https://registry.npmjs.org/delayed-stream/0.0.5 npm http 304 https://registry.npmjs.org/graceful-fs npm http 304 https://registry.npmjs.org/inherits npm http 304 https://registry.npmjs.org/punycode npm http GET https://registry.npmjs.org/lru-cache npm http GET https://registry.npmjs.org/sigmund npm http 200 https://registry.npmjs.org/mkdirp/0.3.0 npm http 304 https://registry.npmjs.org/boom npm http GET https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz npm http 304 https://registry.npmjs.org/cryptiles npm http 304 https://registry.npmjs.org/commander/0.6.1 npm http 304 https://registry.npmjs.org/delayed-stream/0.0.5 npm http 304 https://registry.npmjs.org/sntp npm http 304 https://registry.npmjs.org/lru-cache npm http 304 https://registry.npmjs.org/sigmund npm http 304 https://registry.npmjs.org/hoek npm http 200 https://registry.npmjs.org/mkdirp/-/mkdirp-0.3.0.tgz co-thread@0.0.1 node_modules/co-thread
co@3.0.5 node_modules/co
should@3.3.0 node_modules/should
co-request@0.1.2 node_modules/co-request └── request@2.34.0 (json-stringify-safe@5.0.0, forever-agent@0.5.2, aws-sign2@0.5.0, qs@0.6.6, tunnel-agent@0.3.0, oauth-sign@0.3.0, node-uuid@1.4.1, mime@1.2.11, tough-cookie@0.12.1, http-signature@0.10.0, form-data@0.1.2, hawk@1.0.0)
mocha@1.18.2 node_modules/mocha ├── debug@0.8.0 ├── diff@1.0.7 ├── growl@1.7.0 ├── commander@2.0.0 ├── mkdirp@0.3.5 ├── glob@3.2.3 (inherits@2.0.1, graceful-fs@2.0.3, minimatch@0.2.14) └── jade@0.26.3 (commander@0.6.1, mkdirp@0.3.0) mdesales@Marcello-Work ~/dev/github/co-parallel (master) $ node example.js
/Users/mdesales/dev/github/co-parallel/example.js:22 function status(url) { ^ SyntaxError: Unexpected token 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:902:3