# Installation Problem Windows: PostInstall script

**URL:** <https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527>\
**Category:** mediasoup libraries\
**Created:** [January 18, 2020, 8:15pm UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527 "2020-01-18T20:15:44Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Webkit](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@Webkit](https://mediasoup.discourse.group/u/Webkit)\
**Post date:** [January 18, 2020, 8:15pm UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/1 "2020-01-18T20:15:44Z")

</div>

Having trouble installing Mediasoup on windows. I get a postinstall script error when running ‘npm install mediasoup@3’. I am not trying to run the example project (but even when i tried, i got the same error). Python 2.7 installed. Environment variables set per official instructions. Not 100% sure I did it correctly but MSBuild is not in a /bin/ folder or even close to the example path given in the instructions.

 ![combined](https://global.discourse-cdn.com/free1/uploads/mediasoup/original/1X/989196f94be210d91178459e7a5d19084038ce7d.png)

---

<div class="post-metadata">

**Author:** ![eyals](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/eyals/32/549_2.png) [@eyals](https://mediasoup.discourse.group/u/eyals)\
**Post date:** [January 22, 2020, 10:11pm UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/2 "2020-01-22T22:11:52Z")

</div>

Install “Desktop development with C++” from visual studio installer. It should solve your problem.  
Also try with visual studio 2017. not sure that 2019 is supported.

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [January 23, 2020, 1:04pm UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/3 "2020-01-23T13:04:08Z")

</div>

Can you please verify if mediasoup website says about that requirement in the Installation section of mediasoup (for Windows)? If not, please open an issue in mediasoup-website project in GitHub.

Regarding VS 2019 there are two ongoing issues in mediasoup GitHub tracker.

---

<div class="post-metadata">

**Author:** ![Webkit](https://avatars.discourse-cdn.com/v4/letter/w/a5b964/32.png) [@Webkit](https://mediasoup.discourse.group/u/Webkit)\
**Post date:** [January 24, 2020, 7:26am UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/4 "2020-01-24T07:26:12Z")

</div>

> [@eyals](#):
>
> esktop development with C++

Instructions state that Windows users are required to: A) Install a later version of node - Running v11.1.0.

B) Install Python 2. - Running v2.7.10

C) Make sure there is a PATH to folder containing MSBuild.exe --(C:\Windows\Microsoft.NET\Framework64\v4.0.30319)

D) Create environment variable for GYP\_MSVS\_VERSION with the value field set to the year that corresponds to the version of Visual Studio installed. - Set to “2017” (no quotes),

Installed Desktop development with C++ but that did not solve the problem, same error. Installed Visual Studios 2017, same error. There is a folder called “MSBuild” inside C:\Windows\Microsoft.NET\Framework64\v4.0.30319 but it contains two files: Microsoft.Build.Commontypes.xsd and Microsoft.Build.Core.xsd, not the MSBuild.exe.

* * *

Ok so one issue was that I had MSBuild as a USER VARIABLE. It has to be SYSTEM VARIABLE. Now that fixed, I’m getting a new error:

> “A:\Documents\Projects\node\_modules\mediasoup\worker\mediasoup-worker.sln” (default target) (1) →   
> “A:\Documents\Projects\node\_modules\mediasoup\worker\deps\libwebrtc\deps\abseil-cpp\abseil.vcxproj” (default target) (2  
> ) →   
> A:\Documents\Projects\node\_modules\mediasoup\worker\deps\libwebrtc\deps\abseil-cpp\abseil.vcxproj(21,3): error MSB401  
> 9: The imported project “A:\Microsoft.Cpp.Default.props” was not found. Confirm that the path in the declarati  
> on is correct, and that the file exists on disk.

There are 8 of these errors.

I set VCTarget to C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets, all those dependencies are there I can see them but this error persists.

I suspect there is an issue between VS Community version and Standard addition that needs to be addressed but I don’t have Standard to run any tests. So many hours fighting this… Can MediaSoup be run on a Raspberry Pi running Ubantu?

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [January 27, 2020, 7:24pm UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/5 "2020-01-27T19:24:58Z")

</div>

> [@Webkit](#):
>
> I suspect there is an issue between VS Community version and Standard addition that needs to be addressed but I don’t have Standard to run any tests. So many hours fighting this…

If you can summarize the specific error please report this in mediasoup GitHub. We, mediasoup authors, do not use Windows but can try to manage the problem.

---

<div class="post-metadata">

**Author:** ![ibc](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/ibc/32/1540_2.png) [@ibc](https://mediasoup.discourse.group/u/ibc)\
**Post date:** [January 27, 2020, 7:25pm UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/6 "2020-01-27T19:25:19Z")

</div>

> [@Webkit](#):
>
> Can MediaSoup be run on a Raspberry Pi running Ubantu?

Probably.

---

<div class="post-metadata">

**Author:** ![sunqi](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/sunqi/32/300_2.png) [@sunqi](https://mediasoup.discourse.group/u/sunqi)\
**Post date:** [April 4, 2020, 6:19pm UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/7 "2020-04-04T18:19:30Z")

</div>

yeah,vs 2017 save my life

---

<div class="post-metadata">

**Author:** ![izzuddinraffar](https://yyz2.discourse-cdn.com/free1/user_avatar/mediasoup.discourse.group/izzuddinraffar/32/2368_2.png) [@izzuddinraffar](https://mediasoup.discourse.group/u/izzuddinraffar)\
**Post date:** [October 30, 2020, 6:55am UTC](https://mediasoup.discourse.group/t/installation-problem-windows-postinstall-script/527/8 "2020-10-30T06:55:23Z")

</div>

I think the best and working solution, you have to activate and use the Linux environment in your windows 10  
Step 1 - [https://docs.microsoft.com/en-us/windows/wsl/install-win10](https://docs.microsoft.com/en-us/windows/wsl/install-win10)  
1.1 - after completed all, open Windows Terminal, then type/run “wsl” to switch to the Linux environment before going to Step 2.  
Step 2 - [https://mediasoup.org/documentation/v2/mediasoup/installation/](https://mediasoup.org/documentation/v2/mediasoup/installation/)
