public icon indicating copy to clipboard operation
public copied to clipboard

Please consider adding an "offline" mode for installing wallaby.js

Open tsawan opened this issue 10 years ago • 10 comments

Feature request

Please consider adding a configure option so wallaby can work in offline mode. This will help using wallaby on machines with limited/no internet access by manually copying required dependencies.

tsawan avatar Apr 28 '16 09:04 tsawan

Just to make it clear, wallaby can work without internet access, but to install it the first time the internet may still be required (as it downloads some dependencies, as you know).

ArtemGovorov avatar Apr 28 '16 10:04 ArtemGovorov

Hi Artem, I am behind a corporate firewall that will not allow any outside connections (I know - groan). Is there any way possible to do it manually? I can copy and paste files/dependencies across if it helps. At the moment I am doing a lot of sketching on my laptop with a licensed copy of Wallaby, which is fantastic btw but this is becoming unworkable. Cheers, T

terwalsh avatar Jun 08 '16 06:06 terwalsh

@terwalsh

I can copy and paste files/dependencies across if it helps

This may work if your laptop has the same OS as the target machine. What OS are you using and what editor?

ArtemGovorov avatar Jun 08 '16 07:06 ArtemGovorov

Webstorm with Mac on my laptop and I can use Webstorm but on Windows for work.

I thought I could achieve an offline install as I specified electron in my wallaby.config of the project I'm currently working on and I can install this locally but Wallaby still wants to download phantom. I built a Windows 8 VM this morning hoping to simulate an offline install so I have this ready to go if it helps.

Thanks for the speedy reply Artem!

terwalsh avatar Jun 08 '16 07:06 terwalsh

If you are installing Wallaby for JetBrains IDE offline from the scratch on Windows:

  • Download wallaby version file from https://update.wallabyjs.com/wallaby.json,
  • Download the https://s3.amazonaws.com/wallaby-downloads/wallaby-vNNN.zip file, where NNN is latestServer[0] value in the downloaded wallaby.json file,
  • Unzip the downloaded file to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder (so that <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\wallaby folder is created),
  • Download the latest PhantomJs, extract the downloaded archive and place the PhantomJs executable to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\phantomjs_v2.1.1\ folder,
  • Download the latest node, and place the node executable to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby\node_v8.5.0\ folder (the name of the folder should be as specified above regardless of the actual downloaded node version),
  • Start your IDE and start Wallaby.

If you have Wallaby for JetBrains IDE installed on your Mac, follow these steps:

  • Copy the ~/Library/Caches/WebStormX/wallaby folder (where X is your Webstorm version) to the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\ folder on your Windows machine.
  • Open the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder on your Windows machine, then open the phantomjs_v2.1.1 subfolder and rename the phantomjs file to phantomjs.exe. It doesn't matter that we're just renaming OSX built phantom, because you're using Electron runner, but if you ever need Phantom runner, you will need to download the one for Windows and place it there.
  • Open the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.WebstormX\system\wallaby folder on your Windows machine, then open the node_v8.5.0 subfolder, delete the node file there, download and copy any node.exe compatible with your OS and with version >= 4.2.2. For example, for 64bit Windows, you may use this one or this one for x86. Note that you may override the node version later in your wallaby Run Configuration settings in WebStorm, but even if you do that, it's important to have some node.exe there.

ArtemGovorov avatar Jun 08 '16 07:06 ArtemGovorov

Hey Artem, this works a treat. Thank you so much for your prompt assistance! T

terwalsh avatar Jun 08 '16 23:06 terwalsh

Hi Artem,

I have the same problem in a corporate environment using Visual Studio 2013/2015. Do you have some instructions for that, too?

THX

trustthe27 avatar Jul 26 '16 13:07 trustthe27

@andreashoffmann Should be a bit easier on Windows:

  • Install wallaby extension in some unrestricted environment on Windows for Visual Studio 2013/2015/2017, and run it at least once on any project, so it downloads all the required dependencies.
  • Install wallaby extension in the restricted environment. Copy the <SYSTEM DRIVE>\Users\<USER ACCOUNT NAME>\.wallaby folder from the unrestricted environment to the corresponding folder in the restricted environment.

ArtemGovorov avatar Jul 27 '16 02:07 ArtemGovorov

In corporate network a good solution is to configure Fiddler proxy to forward the traffic to a locally downloaded file (Autoresponder rules). This solution does work if you're able to get those files somehow before, which for me was not really a problem.

kubal5003 avatar Aug 13 '18 11:08 kubal5003

We have no plans to add a separate offline installation kit, but instructions for offline installation are detailed in our docs.

smcenlly avatar Sep 02 '19 05:09 smcenlly