PaloAltoNetworks / minemeld-ansible

Ansible playbook for installing MineMeld on Linux
Apache License 2.0
48 stars 48 forks source link

NPM Install Error - RHEL 7.9 #88

Open nuhghets opened 2 years ago

nuhghets commented 2 years ago

Hello,

I am attempting to upgrade minemeld and have been running into an NPM install error. We are running on RHEL 7.9. Attempted to increase ram to 8GB. Attempted to upgrade/install NPM dependencies. Still failing on NPM install step.

ERROR: TASK [minemeld : npm install] *** fatal: [127.0.0.1]: FAILED! => {"changed": true, "cmd": ["npm", "install"], "delta": "0:00:11.947789", "end": "2022-01-13 13:57:51.394377", "msg": "non-zero return code", "rc": 1, "start": "2022-01-13 13:57:39.446588", "stderr": "npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142\nnpm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.\nnpm WARN deprecated har-validator@5.1.5: this library is no longer supported\nnpm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.\nnpm WARN prefer global node-gyp@3.8.0 should be installed with -g\nsh: node: command not found\nnpm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):\nnpm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})\nnpm WARN minemeldWebui@0.9.70 No repository field.\nnpm WARN minemeldWebui@0.9.70 No license field.\nnpm ERR! Linux 3.10.0-1160.49.1.el7.x86_64\nnpm ERR! argv \"/opt/minemeld/www/venv/bin/node\" \"/opt/minemeld/www/venv/bin/npm\" \"install\"\nnpm ERR! node v6.14.4\nnpm ERR! npm v3.10.10\nnpm ERR! file sh\nnpm ERR! code ELIFECYCLE\nnpm ERR! errno ENOENT\nnpm ERR! syscall spawn\n\nnpm ERR! node-sass@3.13.1 install: node scripts/install.js\nnpm ERR! spawn ENOENT\nnpm ERR! \nnpm ERR! Failed at the node-sass@3.13.1 install script 'node scripts/install.js'.\nnpm ERR! Make sure you have the latest version of node.js and npm installed.\nnpm ERR! If you do, this is most likely a problem with the node-sass package,\nnpm ERR! not with npm itself.\nnpm ERR! Tell the author that this fails on your system:\nnpm ERR! node scripts/install.js\nnpm ERR! You can get information on how to open an issue for this project with:\nnpm ERR! npm bugs node-sass\nnpm ERR! Or if that isn't available, you can get their info via:\nnpm ERR! npm owner ls node-sass\nnpm ERR! There is likely additional logging output above.\n\nnpm ERR! Please include the following file with any support request:\nnpm ERR! /opt/minemeld/www/webui/npm-debug.log\nnpm ERR! code 1", "stderr_lines": ["npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142", "npm WARN deprecated tar@2.2.2: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.", "npm WARN deprecated har-validator@5.1.5: this library is no longer supported", "npm WARN deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", "npm WARN prefer global node-gyp@3.8.0 should be installed with -g", "sh: node: command not found", "npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):", "npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {\"os\":\"darwin\",\"arch\":\"any\"} (current: {\"os\":\"linux\",\"arch\":\"x64\"})", "npm WARN minemeldWebui@0.9.70 No repository field.", "npm WARN minemeldWebui@0.9.70 No license field.", "npm ERR! Linux 3.10.0-1160.49.1.el7.x86_64", "npm ERR! argv \"/opt/minemeld/www/venv/bin/node\" \"/opt/minemeld/www/venv/bin/npm\" \"install\"", "npm ERR! node v6.14.4", "npm ERR! npm v3.10.10", "npm ERR! file sh", "npm ERR! code ELIFECYCLE", "npm ERR! errno ENOENT", "npm ERR! syscall spawn", "", "npm ERR! node-sass@3.13.1 install: node scripts/install.js", "npm ERR! spawn ENOENT", "npm ERR! ", "npm ERR! Failed at the node-sass@3.13.1 install script 'node scripts/install.js'.", "npm ERR! Make sure you have the latest version of node.js and npm installed.", "npm ERR! If you do, this is most likely a problem with the node-sass package,", "npm ERR! not with npm itself.", "npm ERR! Tell the author that this fails on your system:", "npm ERR! node scripts/install.js", "npm ERR! You can get information on how to open an issue for this project with:", "npm ERR! npm bugs node-sass", "npm ERR! Or if that isn't available, you can get their info via:", "npm ERR! npm owner ls node-sass", "npm ERR! There is likely additional logging output above.", "", "npm ERR! Please include the following file with any support request:", "npm ERR! /opt/minemeld/www/webui/npm-debug.log", "npm ERR! code 1"], "stdout": "\n> node-sass@3.13.1 install /opt/minemeld/www/webui/node_modules/node-sass\n> node scripts/install.js\n\nminemeldWebui@0.9.70 /opt/minemeld/www/webui\n└── (empty)", "stdout_lines": ["", "> node-sass@3.13.1 install /opt/minemeld/www/webui/node_modules/node-sass", "> node scripts/install.js", "", "minemeldWebui@0.9.70 /opt/minemeld/www/webui", "└── (empty)"]}

welcome-to-palo-alto-networks[bot] commented 2 years ago

:tada: Thanks for opening your first issue here! Welcome to the community!

nuhghets commented 2 years ago

Actually we were able to resolve this by not completely deleting everything from the /www directory.

My linux sysadmin kept : /opt/minemeld/www/webui/node_modules/node-sass

We were then able to bypass that binary and successfully complete the install. Apparently node-sass is deprecated?

IDK. Happy to say we are now on 0.9.70.