-
Notifications
You must be signed in to change notification settings - Fork 26
Installing
UltCombo edited this page Oct 15, 2014
·
28 revisions
Attention:
Harmonic uses some ES6 features. You'll need to install the latest Node version.
NVM or n (or nodist for Windows) is a good approach to have multiple Node versions and do not break any existent Node software that you already have installed.
Harmonic is available on npm:
npm install harmonic -g
- Create a file named
nodeHarmony
in/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 dependencies:
npm install
- 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: