$ git clone https://github.com/ahmedNY/singlebody.git
$ cd singlebody/backend
$ npm install
$ cd ../frontend
$ npm install
# launching backend
$ cd backend
$ npm start
# launching frontend
$ cd frontend
$ npm start
-
On Unix:
python
(v2.7
recommended,v3.x.x
is not supported)make
- A proper C/C++ compiler toolchain, like GCC
-
On Mac OS X:
python
(v2.7
recommended,v3.x.x
is not supported) (already installed on Mac OS X)- Xcode
- You also need to install the
Command Line Tools
via Xcode. You can find this under the menuXcode -> Preferences -> Downloads
- This step will install
gcc
and the related toolchain containingmake
- You also need to install the
-
On Windows:
- Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools using
npm install --global --production windows-build-tools
from an elevated PowerShell or CMD.exe (run as Administrator). - Option 2: Install tools and configuration manually:
-
Visual C++ Build Environment:
-
Option 1: Install Visual C++ Build Tools using the Default Install option.
-
Option 2: Install Visual Studio 2015 (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.
💡 [Windows Vista / 7 only] requires .NET Framework 4.5.1
-
-
Install Python 2.7 (
v3.x.x
is not supported), and runnpm config set python python2.7
(or see below for further instructions on specifying the proper Python version and path.) -
Launch cmd,
npm config set msvs_version 2015
-
If the above steps didn't work for you, please visit Microsoft's Node.js Guidelines for Windows for additional tips.
- Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools using
If you have multiple Python versions installed, you can identify which Python
version node-gyp
uses by setting the '--python' variable:
$ npm config set python /path/to/executable/python2.7
Note that OS X is just a flavour of Unix and so needs python
, make
, and C/C++.
An easy way to obtain these is to install XCode from Apple,
and then use it to install the command line tools (under Preferences -> Downloads).