{"action":"created","issue":{"url":"https://api.github.com/repos/TheHive-Project/Cortex/issues/142","repository_url":"https://api.github.com/repos/TheHive-Project/Cortex","labels_url":"https://api.github.com/repos/TheHive-Project/Cortex/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/TheHive-Project/Cortex/issues/142/comments","events_url":"https://api.github.com/repos/TheHive-Project/Cortex/issues/142/events","html_url":"https://github.com/TheHive-Project/Cortex/issues/142","id":368635066,"node_id":"MDU6SXNzdWUzNjg2MzUwNjY=","number":142,"title":"Build Error on NodeJS 8","user":{"login":"adl1995","id":13198325,"node_id":"MDQ6VXNlcjEzMTk4MzI1","avatar_url":"https://avatars0.githubusercontent.com/u/13198325?v=4","gravatar_id":"","url":"https://api.github.com/users/adl1995","html_url":"https://github.com/adl1995","followers_url":"https://api.github.com/users/adl1995/followers","following_url":"https://api.github.com/users/adl1995/following{/other_user}","gists_url":"https://api.github.com/users/adl1995/gists{/gist_id}","starred_url":"https://api.github.com/users/adl1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adl1995/subscriptions","organizations_url":"https://api.github.com/users/adl1995/orgs","repos_url":"https://api.github.com/users/adl1995/repos","events_url":"https://api.github.com/users/adl1995/events{/privacy}","received_events_url":"https://api.github.com/users/adl1995/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-10T12:11:38Z","updated_at":"2018-10-10T15:23:51Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"### Request Type: Bug\r\n\r\nI am running the build on CentOS7 with NodeJS version 8.9.0 (using `rh-nodejs8` package). But it seems this version of node does not support `node-sass` [version 3.10.0](https://www.npmjs.com/package/node-sass/v/3.10.0-1) as specified in `Cortex/www/package.json` file. It only supports NodeJS version 0.10, 0.12, 1, 2, 3, 4, 5, and 6.\r\n\r\nSo, I re-ran the build with NodeJS  version 6.11.3 (using `rh-nodejs6` package), however, this raises issue with `css-spaces` dependency, which throws the error:\r\n\r\n```\r\n[error] npm ERR! css-spaces@0.3.5 postinstall: `bower install`\r\n[error] npm ERR! Exit status 1\r\n[error] npm ERR! \r\n[error] npm ERR! Failed at the css-spaces@0.3.5 postinstall script 'bower install'.\r\n[error] npm ERR! Make sure you have the latest version of node.js and npm installed.\r\n[error] npm ERR! If you do, this is most likely a problem with the css-spaces package,\r\n[error] npm ERR! not with npm itself.\r\n```\r\n\r\n### Work Environment\r\n\r\n| Question              | Answer\r\n|---------------------------|--------------------\r\n| OS version (client)       | CentOS7\r\n| Cortex version / git hash   | 2.1.0\r\n| Package Type              | From source\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/TheHive-Project/Cortex/issues/comments/428616100","html_url":"https://github.com/TheHive-Project/Cortex/issues/142#issuecomment-428616100","issue_url":"https://api.github.com/repos/TheHive-Project/Cortex/issues/142","id":428616100,"node_id":"MDEyOklzc3VlQ29tbWVudDQyODYxNjEwMA==","user":{"login":"nadouani","id":21827,"node_id":"MDQ6VXNlcjIxODI3","avatar_url":"https://avatars2.githubusercontent.com/u/21827?v=4","gravatar_id":"","url":"https://api.github.com/users/nadouani","html_url":"https://github.com/nadouani","followers_url":"https://api.github.com/users/nadouani/followers","following_url":"https://api.github.com/users/nadouani/following{/other_user}","gists_url":"https://api.github.com/users/nadouani/gists{/gist_id}","starred_url":"https://api.github.com/users/nadouani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nadouani/subscriptions","organizations_url":"https://api.github.com/users/nadouani/orgs","repos_url":"https://api.github.com/users/nadouani/repos","events_url":"https://api.github.com/users/nadouani/events{/privacy}","received_events_url":"https://api.github.com/users/nadouani/received_events","type":"User","site_admin":false},"created_at":"2018-10-10T15:23:51Z","updated_at":"2018-10-10T15:23:51Z","author_association":"CONTRIBUTOR","body":"`npm install --ignore-scripts` should fix the issue, we don't need to have postinstall scripts of dependencies to be executed :)"}}
{"actor":{"display_login":"nadouani"}}