Run an Angular Project on a WINDOWS OS, that created on MAC OS (Linux) (ERROR FIX)

Sithum Meegahapola
2 min readMay 31, 2019

--

What is this Article about?
This is about an error that comes when we tried to run an Angular Project on a Windows OS, that the project created on a MAC OS (Linux Based). So the compile-time error will be shown when tried to run the project in development mode using the terminal (ng serve).

This error occurs from the node-sass in npm.

What is this node-sass is?
Node-sass is a library that provides bindings for Node.js to LibSass, the C version of the popular stylesheet preprocessor, Sass. It allows you to natively compile .scss files to CSS at incredible speed and automatically via a connect middleware.
“Reference → https://www.npmjs.com/package/node-sass

So to get rid of from this error and run the project successfully.
You just have to run this code in your terminal from the working directory

“npm rebuild node-sass”

Now you will be able to run your Angular project that created on a Mac OS, on your Windows OS.

--

--

Sithum Meegahapola
Sithum Meegahapola

Written by Sithum Meegahapola

Senior Software Engineer & Audio Engineer

No responses yet