git clone https://github.com/vatesfr/xo-server.git
cd xo-server
npm install
git clone https://github.com/vatesfr/xo-web.git
cd xo-web
npm install
node.js did not work properly for me through apt-get so I installed it from source.
git clone https://github.com/joyent/node.git
./configure
make
make install
To solve the error:
Error: "pre" versions of node cannot be installed, use the --nodedir flag instead
use the following commands:npm config set nodedir /directory/to/node
or
npm config set nodedir /directory/to/node --global
this is because npm install needs node's source as well as the node executable. Make sure that directory is permanent. I have mine so that I can git pull a newer version right in that directory without any other major modifications. The first line represents the current user's npm config file and the second represents the global config file.
Also, make sure you are running the latest node version of 10.x, 11.x is not compatible.
No comments:
Post a Comment