5

I've recently updated my Angular project from 8 to 9. It worked fine on my machine. I tried copying the files and assembling them on another device. While doing npm install I am getting the following error.

I tried removing package.lock.json and removing the node_modules folder completely and tried many times. But nothing worksenter image description here

nega
  • 2,526
  • 20
  • 25
VinoPravin
  • 947
  • 3
  • 17
  • 32
  • Did you find any solution? I'm stuck on same problem – Mustafa Kunwa Mar 30 '20 at 13:37
  • remove node_modules folder and try installing your dependencies with yarn instead of npm. – VinoPravin Apr 07 '20 at 10:52
  • Have you tried removing the ```--create-ivy-entry-points``` flag? The docs at https://angular.io/guide/ivy say: "Don't use --create-ivy-entry-points as this will cause Node not to resolve the Ivy version of the packages correctly." – Marcus Apr 22 '20 at 20:44
  • Found a solution for this? – danny36 Jun 16 '20 at 13:34
  • I have same problem upgrading from Angular 9 to 10 .. Seems like my package.json had a script "postinstall": "ngcc --properties es2015 browser module main --first-only --create-ivy-entry-points" .. this is run everytime 'npm install' is run. This can be modified to possibly fix whatever problem it is. – Bjarne Gerhardt-Pedersen Jul 20 '20 at 11:57

1 Answers1

0
  1. open Powershell as Administrator
  2. cd yourProjectPath
  3. npm i
  4. ng serve