Settings => Languages & Frameworks => JavaScript language version and choose ECMAScript 6
Work in progress at the moment. Windows builds have several dependecies issues and do not work. Also we have not yet tested the build cross environment. Please open a issue if you find a problem. Thanks.
Windows: just download and install from URL: https://nodejs.org/en/download/
Linux: tutorial how to install Node.js using NVM (recommended) Install Node.js using NVM
git clone https://github.com/RaiLightNetwork/Node-RaiLight.git Node-RaiLight
cd Node-RaiLight
to enter in the downloaded folder of the repository
npm install
###In case you will get errors:
In case your will get errors from node-gyp especially for webrtc
open a Command Prompt with Administrator rights
cd C:\Path\To\Node-RaiLight\
npm install --global --production windows-build-tools
npm install
Mocha Tests
npm test
Obs. In case there you get an error message about some missing packages like the following one:
Error: Cannot find module 'name_missing_package'
just, run npm install name_missing_package
npm run build_browser
npm run test_browser
open web page dist_bundle/browser/browser.html