title: Compiling an existing project under Linux using Angular?
body: <p>We need to compile an existing Angular project, that was developed and compiles successfully under Windows 10, in Linux.</p>
  
  <p>At first I installed WSL Ubuntu in Windows 10. I did <code>npm install</code> all went well. Then I tried to build my project using <code>ng build --prod --base-href /IC/</code> (which works on Windows) and got hung on</p>
  
  <pre><code>92% chunk asset optimization TerserPlugin 
  </code></pre>
  
  <p>I read online and leared that this is a common problem running on WSL. So I have setup an Ubuntu VM under hyper-v, installed node and npm and tried again.</p>
  
  <p>This time, while running <code>npm install</code> I get some errors, but if I run <code>sudo npm install</code> I pass those errors and see the <code>node-sass@4.11.0</code> compiles some c files, and then fails with the following:</p>
  
  <pre><code>npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
  npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! node-sass@4.11.0 postinstall: `node scripts/build.js`
  npm ERR! Exit status 1
  npm ERR! 
  npm ERR! Failed at the node-sass@4.11.0 postinstall script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /home/ophir/.npm/_logs/2019-11-17T09_53_45_418Z-debug.log
  </code></pre>
  
  <p>Any ideas how to compile an angular project on Linux?</p>