Created
August 25, 2015 03:35
-
-
Save codeck/f31c7fb162a62113c920 to your computer and use it in GitHub Desktop.
how to run es6 javascript
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
#apt-get install npm | |
#ln -s /usr/bin/nodejs /usr/bin/node | |
echo 'prefix = ${HOME}/.npm-packages' >> ~/.npmrc | |
git clone https://github.com/stellar/js-stellar-base.git && cd js-stellar-base | |
npm install -g babel | |
npm install | |
babel-node examples/test.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
in babel 6, additional steps required:
$npm install --save-dev babel-preset-s2015
and save
in project_root/
.babelrc