-
Notifications
You must be signed in to change notification settings - Fork 26
Installing
Jaydson Gomes edited this page Jul 7, 2014
·
28 revisions
Attention:
Harmonic uses some ES6 features. You'll need to install the latest node version.
NVM or n is a good approach to have multiple node versions and do not break any existent node software that you already have installed.
Clone the harmonic repository:
git clone [email protected]:es6rocks/harmonic.git
Install:
cd harmonic
npm install
- Create a file named "nodeHarmony" in your path /usr/local/bin with the following code:
#!/bin/sh
node --harmony "$@"
- Give the right permission:
sudo chmod a+x nodeHarmony
Now, if your run in your console:
nodeHarmony myfile.js
You will be running node with the harmony flag.
Harmonic depends on this configuration.
- Install node dependencies:
npm install
- Harmonic is not available on npm (yet), so you need to run the following code to get harmonic on your global path:
npm link
If everything is ok, you can type harmonic in your terminal, and you'll get the harmonic menu: