Angular Errors & Solutions

How to fix “This usually happens because your environment has changed since running npm install.” this issue ?

This issue generally happens if you updated or reinstalled your npm. The easiest solution is,

Solution 1:

npm install node-sass

Solution 2:

If it does not work, then try removing the node_modules folder and then

npm install 

then try,

ng serve 

Solution 3: [This is the one worked for me]

Remove browserlist.cmd and browserlist file from your project’s root folder then try ng build then ng server

1,193 total views, 6 views today

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.