censorship-no-archive / ceno1

(Deprecated PoC) Innovative censorship evading technology based on p2p distributed caching network
https://censorship.no
GNU Affero General Public License v3.0
58 stars 14 forks source link

Install gulp locally in client build script #276

Open ivilata opened 8 years ago

ivilata commented 8 years ago

The invocation of npm install -g gulp in the script may fail if the user doesn't have write access to system directories (usually root permissions). Also, the later building of resources fails and the build script doesn't detect this:

[...]
Preparing CENO Portal.
*  Installing the gulp build tool.
npm ERR! tar.unpack untar error /home/ivan/.npm/gulp/3.9.1/package.tgz
npm ERR! Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules'
[...]
*  Building resources.
./build.sh: 44: ./build.sh: gulp: not found

[SUCCESS] - Compiled CENO Client.

This change makes the installation of gulp local and then it invokes the local version in the build script.

Since the portal readme mentions that gulp tasks may be run independently, a note is added to point out that installing gulp globally is only needed if the user intends to run these tasks manually.