7

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

5
  • Did you find any solution? I'm stuck on same problem Commented Mar 30, 2020 at 13:37
  • remove node_modules folder and try installing your dependencies with yarn instead of npm. Commented Apr 7, 2020 at 10:52
  • Have you tried removing the --create-ivy-entry-points flag? The docs at 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." Commented Apr 22, 2020 at 20:44
  • Found a solution for this? Commented Jun 16, 2020 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. Commented Jul 20, 2020 at 11:57

1 Answer 1

1
  1. open Powershell as Administrator
  2. cd yourProjectPath
  3. npm i
  4. ng serve
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.