Site icon NgDeveloper

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

Exit mobile version