Skip to content
This repository has been archived by the owner on May 2, 2019. It is now read-only.

Install gulp locally in client build script #276

Open
wants to merge 1 commit into
base: next
Choose a base branch
from

Conversation

ivilata
Copy link
Collaborator

@ivilata ivilata commented Jun 15, 2016

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 (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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant