OHIF Standalone Installation Instructions For Windows Server 2016:
Note: Turn-Off Windows Defender Realtime protection during this process
-
Install Chocolatey
a. Go to this URL for instructions:
https://chocolatey.org/install#install-with-cmdexe
b. Execute this command in the cmd line as Admin:
@"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
c. Type
choco -?
to ensure the installation is OK. -
Install Meteor
a. Type the command:
choco install meteor
-
Install node.js
a. Download MSI from: https://nodejs.org/en/download/
-
Install MongoDB
a. Download MSI from: https://www.mongodb.com/download-center/community
-
Install Git
-
Download the OHIF Viewer repository from GitHub, or use Git to clone it (recommended)
a. GitHub Repo: https://github.com/OHIF/Viewers
b. GIT Clone command:
git clone https://github.com/OHIF/Viewers
-
Set the Meteor Packages folder environment variable
a. Go to Advanced System Settings
b. Under Advanced, click on the "Environment Variables..." button
c. Under System Variables, click "New..."
d. Set the following:
i. Variable name: METEOR_PACKAGE_DIRS
ii. Variable Value: example: C:\OHIF\Viewers\Packages
-
Using the command line, navigate/cs to the standalone viewer folder, example:
cd C:\OHIF\Viewers\StandaloneViewer\StandaloneViewer
-
run the command:
meteor npm install
-
Run the command:
meteor
a. if you get this error "Error: EPERM: operation not permitted, unlink" Or,
b. You feel the build is stale for a very long time > 10min with no visual indication, restart the cmd prompt and repeat this step (
meteor
)
Troubleshooting:
-
If you get an error: Error: EPERM: operation not permitted, unlink
c:\xxxxx