"Cannot find module 'tough-cookie'" is the same error you get when you are on the wrong C++ compiler version. I would check that again.
So after a lot of mostly random debugging i found a solution :)
even if i did everything mention so far i got failed on "metron-config" it kept asking for modules like, tough-cookie, safe-json-stringify, json-stringify-safe, stringstream, caseless ..... (although i can find the folders and files for these).
so what i did: (including above about gcc)
after this fails the first time:
mvn clean package -DskipTests -T 2C -P HDP-126.96.36.199,mpack
cd /location/metron/metron-interface/metron-config npm install npm install #read somewhere that doing double is the way to go cd /location/metron/ #backto original metron location mvn package -DskipTests -T 2C -P HDP-188.8.131.52,mpac
then i got success on all :)
hope this helps other people :)
It also worked for me! I had an error related to npm, but after doing these steps i got no error. Thanks.
I had the similar question, when I donot added the install-node-and-npm goals in the pom.xml; if i added, the question not; so i want to ask whethet i must add the install-node-and-npm in the pom.xml, whether my pc installed the node or not, thanks.