Created
September 30, 2016 16:29
-
-
Save jhyland87/e1b2afd5022ec2153b98be82f6816a8a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( 13)[Fri Sep 30 09:29:01| 0:000]{50}jhyland@jhmac:~/Documents/scripts/node/personal/sasset-core-beta(0) (master)$ cat es6-test.js | |
#!/usr/local/bin/node | |
'use strict' | |
import _ from 'lodash' | |
_.forEach({ 'a': 1, 'b': 2 }, (value, key) => { | |
console.log(key) | |
})( 13)[Fri Sep 30 09:29:06| 0:000]{51}jhyland@jhmac:~/Documents/scripts/node/personal/sasset-core-beta(✓) (master)$ /usr/local/bin/node es6-test.js | |
/Users/jhyland/Documents/scripts/node/personal/sasset-core-beta/es6-test.js:4 | |
import _ from 'lodash' | |
^^^^^^ | |
SyntaxError: Unexpected token import | |
at exports.runInThisContext (vm.js:53:16) | |
at Module._compile (module.js:511:25) | |
at Object.Module._extensions..js (module.js:550:10) | |
at Module.load (module.js:456:32) | |
at tryModuleLoad (module.js:415:12) | |
at Function.Module._load (module.js:407:3) | |
at Function.Module.runMain (module.js:575:10) | |
at startup (node.js:159:18) | |
at node.js:444:3 | |
( 13)[Fri Sep 30 09:29:11| 0:000]{52}jhyland@jhmac:~/Documents/scripts/node/personal/sasset-core-beta(0) (master)$ /usr/local/bin/node --harmony es6-test.js | |
/Users/jhyland/Documents/scripts/node/personal/sasset-core-beta/es6-test.js:4 | |
import _ from 'lodash' | |
^^^^^^ | |
SyntaxError: Unexpected token import | |
at exports.runInThisContext (vm.js:53:16) | |
at Module._compile (module.js:511:25) | |
at Object.Module._extensions..js (module.js:550:10) | |
at Module.load (module.js:456:32) | |
at tryModuleLoad (module.js:415:12) | |
at Function.Module._load (module.js:407:3) | |
at Function.Module.runMain (module.js:575:10) | |
at startup (node.js:159:18) | |
at node.js:444:3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment