How can I create an offline copy of nodejs newman

417
January 04, 2018, at 00:27 AM

I have a process to install node and newman on a Centos 7 server. This all works fine. Basically its

rpm -ivh http-parser-2.7.1-3.el7.x86_64.rpm
yum -y install nodejs
npm install newman --global
npm rebuild

I have a requirement to package it all up so it can be install on a server without any internet access. I have the rpms downloaded for nodejs,npm,http-parser and they install OK without any dependency issues. I use the following.

rpm -ivh http-parser-2.7.1-5.el7_4.x86_64.rpm
rpm -ivh nodejs-6.12.2-1.el7.x86_64.rpm npm-3.10.10-1.6.12.2.1.el7.x86_64.rpm

As newman is not installed via yum/rpm, but with the npm install command. I am struggling getting a copy of newman and its dependencies to work. Initially I tried to tar up /usr/lib/node_modules and then untar on the target server but when I do that I get newman not found . I've tried and npm rebuild also but that didn't help.

Is there a better way to take a copy of my working node/npm setup and transfer it all to another machine that's not got internet access ?

Note: I'm only interested in getting newman working on the none internet server, so won't ever need to download any other packages in the future.

Thanks.

Rent Charter Buses Company
READ ALSO
setTimeout memory leak in Node(Meteor)

setTimeout memory leak in Node(Meteor)

I am having a strange memory leak when I use setTimeout

259
Converting Array to Buffer in Node JavaScript

Converting Array to Buffer in Node JavaScript

I am writing a simple opc ua client, the goal is to be able to connect to the opc ua server and send a Hello message,

341
How to use aps.cer file for APN (Push notification) with Node.js?

How to use aps.cer file for APN (Push notification) with Node.js?

I'm having issues with nodejs sending push notifications, I think because I'm doing something wrong with my APN certificate thats generated in my apple developer account

302
How to set the default value of mongoose field to the number of existing entries?

How to set the default value of mongoose field to the number of existing entries?

I am trying to set the default value for a field in a mongoose schema to the number of entries which are already existing in the DB

361