From c7f816e226016ddd7e6ea9553e19bee65d1282cc Mon Sep 17 00:00:00 2001 From: Xin Date: Thu, 5 Nov 2015 11:54:57 -0800 Subject: [PATCH] specify installation in Ubuntu Change-Id: I8731f6eb4e2aa1bf9ea03284614f8f5b53e5bc0e --- kb_web/.idea/workspace.xml | 28 +++++++++++++++++++--------- kb_web/README.md | 20 ++++++++++++++------ 2 files changed, 33 insertions(+), 15 deletions(-) diff --git a/kb_web/.idea/workspace.xml b/kb_web/.idea/workspace.xml index 6149168..be9a87c 100644 --- a/kb_web/.idea/workspace.xml +++ b/kb_web/.idea/workspace.xml @@ -71,17 +71,27 @@ - - - + + + - + + + + + + + + + + + @@ -909,20 +919,20 @@ - + - - - + + + - + diff --git a/kb_web/README.md b/kb_web/README.md index 6c6174d..8434326 100644 --- a/kb_web/README.md +++ b/kb_web/README.md @@ -8,32 +8,40 @@ If you want to change the UI code, you need to install NodeJS, npm, grunt and bo ### NodeJS & npm -download nodeJS & npm. For more detail see [nodejs.org](https://nodejs.org/) +download nodejs & npm. For more detail see [nodejs.org](https://nodejs.org/) + +#### NodeJS installation on Ubuntu/Debian + +Some install scripts expect there a binary called node to be present whereby Ubuntu installs it as nodejs. + +Using `sudo apt-get install nodejs-legacy`, + +the nodejs package shall be changed to provide /usr/bin/nodejs, not /usr/bin/node. ### Grunt Install Grunt's command line interface (CLI) globally: -`npm install -g grunt-cli` +`sudo npm install -g grunt-cli` -And the project has already been configured with a package.json and a Gruntfile. +And the project has already been configured with a kb_web/package.json and a Gruntfile. Then change to the project's root directory (/kb_web). -Install project dependencies with `npm install`. +Install project dependencies with `sudo npm install`. ### Bower Install Bower: -`npm install -g bower` +`sudo npm install -g bower` Then execute the `bower install` command to install all of the packages which specified in kb_web/bower.json. ## Build & development -Run `grunt serve` for preview UI. +Run `grunt serve` for preview UI. Run `grunt build` to compress all files to kb_web/dist.