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.
The invocation of
npm install -g gulp
in the script may fail if the user doesn't have write access to system directories (usuallyroot
permissions). Also, the later building of resources fails and the build script doesn't detect this: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.