Packed all the required dependencies using npm-pack-all from the machine which is connected to the internet and installed all the packages globally. Then extracted the packed .tgz file using npm install filename.tgz in the offline machine the packages are getting installed but the protractor and other dependencies are not recognized.