10

I am getting these warnings and then errors at the end. What is the fix?

npm WARN deprecated core-js@2.6.10: core-js@<3.0 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN tarball tarball data for @angular/compiler@^8.0.0 (sha512-ABZO4E7eeFA1QyJ2trDezxeQM5ZFa1dXw1Mpl/+1vuXDKNjJgNyWYwKp/NwRkLmrsuV0yv4UDCDe4kJOGbPKnw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/core@^8.0.0 (sha512-zeePkigi+hPh3rN7yoNENG/YUBUsIvUXdxx+AZq+QPaFeKEA2FBSrKn36ojHFrdJUjKzl0lPMEiGC2b6a6bo6g==) seems to be corrupted. Trying one more time.
Muzaffar Mahmood
  • 1,688
  • 2
  • 17
  • 20

6 Answers6

11

Try removing package-lock.json and then npm install. This worked for me:

cd <your-project-directory>
rm package-lock.json
npm install 
Adrian Mole
  • 49,934
  • 160
  • 51
  • 83
Parth Shah
  • 167
  • 1
  • 7
4
  1. Remove package-lock.json

  2. Remove node_modules,

  3. and then install packages using npm install.

This resolved issue for me.

Georges Feungap
  • 456
  • 3
  • 8
1

You need to disable your antivirus software and run cmd as an administrator. Don't forget disabling the windows firewall. As for the deprecated Core-js 2.6.10 I'm facing the exact same issue but at least it's a warning you can ignore. I've tried reinstalling Angular cli and manually updating Core-js to the latest version using npm install -g core-js@latest unfortunately neither worked. Also fsevents seems to be Mac related and nothing to worry about.

Hamid Reza
  • 150
  • 1
  • 5
-1

You need to confirm whether the Typescript is installed and after installing typescript it worked for me

running the below comment will show the typescript version

tsc -v

If it shows some error install the typescript

npm install -g typescript

If then typescript is installed you can try checking the Angular Cli version

ng --version

If it shows some error then install Angular Cli Ref: https://cli.angular.io/

npm install -g @angular/cli
Shajin Chandran
  • 1,500
  • 1
  • 11
  • 12
-1

I had to reinstall node.js to fix this.

I had to uncheck the box for auto install chocolatey

-1

Changed the integrity to a relevant one, then it worked upon triggering the jenkins build. The hash updated was given in jenkins console logs.