Hey Im looking for a good and solid solution for how to install node + vuejs full stack web program in offline. Our customer can not have any internet access so we have to install it in offline but cant imagine how to do. First idea was copy all the code including node modules and just paste it to the customer’s computer and run it. However I do bot believe this is gonna work.
Customer uses Centos as fas as I know.
Thanks in advance.
Anyone who's looking for a 'how to' steps for offline centOS install.
Preparation
a laptop or Computer can access to the internet.
Install VM or whatever you want to use to set the whole project in CentOS
Install CentOS7 in your VM and connect to the internet.
!! Important!!
You MUST Follow your customer's centOS install options. There are many options you can select when you install your centOS. When you install your project in offline, you have to have all the packages(or dependencies) depends on OS installed options. If your customer installed CentOS as full development package, then you don't have to have additional dependencies. if not, you need a lot.
download all the packages you need as CentOS version. In my case, my web is based on 'Nodejs + Express', 'Vuejs + AntDesign', pm2, nginx so I have donwnloaded nodejs, nginx, and pm2. Others are gonna work without any problems once you've installed Nodejs. If you need some additional packages or dependencies(it will be written in the terminal message during installation process of node or others) then write down all the packages and install them.
Set your project in CentOS and test if it works(build the project if it's needed). If it does not work, check the path, dependencies, or anything else might be related(DO NOT FORGET LINUX AUTHORITY!!).
If everything works, then get all the installation file(.rpm) you've installed.
install another CentOS in VM as OFFLINE
install in offline CentOS .rpm installation files you get from online CentOS above.(no. 6) (DO Exactly same installation but this time, with only the files. not from the online repositories)
Test
If it's not working, check the path, root or user's authority in CentOS.
About PM2.
As PM2 is for the process management, you have to install it globally. However, sometimes(I tested 2 times in exactly same set environments. First try did work but second try didn't work. Couldn't find why. I've tested 4.3 and it works every time so I suggest you to get the pm2 version under 4.5) pm2 v.4.5 or up does not support offline installation with npm so All you have to do in online centos:
npm pack pm2(whatever you've set the name when you installed pm2 in online centos, if you didn't change the package name then npm pack pm2 will work, command path doesn't matter. pm2 is installed globally so when you run npm pack pm2 anywhere it will take global installed pm2 whatsoever) This will pack all the dependencies to install pm2 in offline. Take this packed file(.tgz) and install this in offline.
Test
If it's not working and you couldn't find the reason why, leave a comment or answers down below. I will try to help as much as I can.(I'm Korean and live in Korea. Please be aware of time difference)
please how can I install NodeJS on my operating system. I have tried downloading it from their official website but it doesnt run due to the requirement.
Is there another way to get it installed?
I'm trying to setup hyperledger fabric in my windows 10 system. While installing the pre-requisites mentioned in the fabric's documentation I couldn't install the global build tools. I tried running the command:
npm install --global windows-build-tools
but the installation gets stuck at:
successfully installed Python 2.7 and it stops at rpc connection was closed.Stream was closed.
I also followed the following youtube tutorial but still facing the same problem. The reference link:
https://www.youtube.com/watch?v=7BeJ6MSKH9k&t=457s
Update: It works by changing the command to
npm install --global windows-build-tools#4.0.0
Seems the problem is with the latest version of build tools. Some compatibility issue.
I'm doing the developers tutorial found here: https://hyperledger.github.io/composer/v0.16/tutorials/developer-tutorial.html
On the step where you have to runtime install I call this command:
composer runtime install --card PeerAdmin#hlfv1 --businessNetworkName tutorial-network
But get the following error:
Unknown arguments: card, businessNetworkName, runtime, install
Ive looked through the composer-cli documentation and runtime is still in there. Is the documentation out-dated or what else might be going wrong here. I'm absolutly clueless.
You are looking at a tutorial for the version v0.16 - this is now quite dated and unless you are specifically using this version you should use the latest doc and the latest Composer version.
The latest doc is here: https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial
Check you version of Composer with composer -v hopefully you are using v0.19.6 or similar.
(Composer runtime install was a v0.16 command and no longer present in v0.19.* - the new commands are in the tutorial.)
Composer v0.19.* works with Fabric v1.1.0 - this is the latest version and hopefully this is the version you have. You can check your Fabric version by using docker images and you should see image names ending -1.1.0 If not you will need to remove the existing containers and images and re-do the step to create the Development Fabric as described in the latest docs.
The Web platform installer only installs the latest version.
I have also tried using offline installer, but it seems there is an existing issue with 5.3.301 runtime fresh install on Windows10 anniversary version. Please help. I'm stuck here very bad. Any other possible ways to install?