Angular: Can't install Angular using npm or yarn

Created on 16 May 2018  ·  139Comments  ·  Source: angular/angular

I'm submitting a...


[x] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
[ ] Other... Please describe:

Current behavior


When running npm install while targeting any Angular v6 package in package.json I get the following errors:

npm WARN tarball tarball data for @angular/router@^6.0.2 (sha512-XqTtfs/UzT2k2MeVQG1pOP+wR1zcH8V71S6kmWIwFcfyKUgZfIm45sNsZyBZPwY2RUqwCeZYQFjPlVW8wD1PBw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/forms@^6.0.2 (sha512-Oc234cLjTj1tx2gF/nS/TIC3Auc+LCyC8H6GYqTxXQUyZQeGHqUptvDQz3KwM9Num3EKFUr9J2yzGPnz6lZVmQ==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\compiler-cli-fb6ed8cd\src\metadata\bundler.d.ts'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\compiler-cli-fb6ed8cd\src\metadata\bundler.js'
npm WARN tarball tarball data for @angular/animations@^6.0.2 (sha512-QoNJ/L0Xgtrj1KBp8wvxhHwRt+sQ5tBihWm82UbNgN82ZNnfNzQoAqtahbZN5AY7XFmGbDX+lVt3TdO8omXhmg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/core@^6.0.2 (sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/compiler@^6.0.2 (sha512-uKuM7dcTWwcElklT4E/tckp5fnGNUq4wDna3gZWO6fvc7FQK0SUU4l+A6C1d5YdCRgAsv6gxIrk3MxbSF9UwEw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/common@^6.0.2 (sha512-Yc3NnLGs1ltnDhUCOoMCQMRSkJv/sCv+jKx3uSdrvd8Y55APl2boZhZUK4WphPfWIkpvC7odpiLXAmnVgP6vcw==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\platform-browser-75fc8e44\esm2015\src\browser\location\browser_platform_location.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\platform-browser-75fc8e44\esm2015\src\browser\location\history.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\platform-browser-75fc8e44\esm2015\src\browser\meta.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\platform-browser-75fc8e44\esm2015\src\browser\server-transition.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\platform-browser-75fc8e44\esm2015\src\browser\testability.js'
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\dude\Documents\Apps\Amazing-App\node_modules\.staging\@angular\platform-browser-75fc8e44\esm2015\src\browser\title.js'
npm WARN tarball tarball data for @angular/compiler-cli@^6.0.2 (sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw==) seems to be corrupted. Trying one more time.
[            ......] \ extract: WARN tarball tarball data for @angular/compiler-cli@^6.0.2 (sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw==) seems to be corrupted. Trying one more time.

I even tried yarn, but it didn't help. The installation process hangs awfully long on the @angular/* packages and then exits with the following errors:

yarn install
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
error Couldn't find package "@angular/platform-server" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Expected behavior

Should install without errors.

Minimal reproduction of the problem with instructions

  1. Target Angular v6.0.2 in package.json
  2. Run npm install

What is the motivation / use case for changing the behavior?

Can't install Angular lol.

Environment


Angular version: 6.0.2


For Tooling issues:
- Node version: 10.1.0  
- NPM version: 6.0.1
- yarn version: 1.6.0
- Platform: Windows 10 x64 

Most helpful comment

Folks, not saying this is a fix but attempting to install using a different registry has let me install Angular 5.

Used this from project directory npm install --registry http://registry.cnpmjs.org

Seems the issue is with https://registry.npmjs.org ?

Anyhow this was enough to let me get on with my day!

All 139 comments

I have the exact same issue, Angular 6.0.1 worked fine but it seems like it cannot install when upgraded.

Node.js: v8.9.4
npm: 6.0.1

npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting @angular/[email protected]:
npm ERR! Verification failed while extracting @angular/[email protected]:
npm ERR! sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw== integrity checksum failed when using sha512: wanted sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw== but got sha512-i15bqAquwprn+NOk3LIzjxhFQjSQJmv0j9/NiPchixExG++Tt2UeNGSOA/QD5O8qy5A1O5itxNqPZB06c6VhuA==. (165286 bytes)
WARN tarball tarball data for @angular/[email protected] (sha512-Yc3NnLGs1ltnDhUCOoMCQMRSkJv/sCv+jKx3uSdrvd8Y55APl2boZhZUK4WphPfWIkpvC7odpiLXAmnVgP6vcw==) seems to be corrupted. Trying one more time.
WARN tar ENOENT: no such file or directory, open '/Users/mmarin/Documents/YoobicGit/yoobic-ng-6/node_modules/.staging/@angular/animations-ac3cc417/esm2015/browser/src/dsl/animation_ast.js'
WARN tar ENOENT: no such file or directory, open '/Users/mmarin/Documents/YoobicGit/yoobic-ng-6/node_modules/.staging/@angular/forms-5cf345dd/esm2015/src/validators.js'

Same problem:

Angular version: 5.1.0

For Tooling issues:

  • Node version: 8.11.1
  • NPM version: 6.0.1
  • Platform: Windows 10 x64

downgraded npm to 5.6.0 -> same error

I tried installing any Angular v6 package and they all have the same errors. Even all the material2 and cdk related packages have the same corruption.

Removing all @angular/* dependencies makes npm install run through without errors.

Seems like all packages under @angular/* are corrupted. Can't install a project from a colleague right now, we like have to copy our node_module folders.

I have the same problem:

Angular version: 6.0.2

Node: 8.11.1
npm: 6.0.1
Platform: CentOS 7

Can't install my project.

Can anybody check if yarn has the same behavior?

Me too. Same behavior. Checking yarn now

Same here. Also for 5.0.0.
npm 6.0.1
node 10.1.0

Yarn working fine !!

same !

...
npm WARN tarball tarball data for @angular/forms@^6.0.0 (sha512-Oc234cLjTj1tx2gF/nS/TIC3Auc+LCyC8H6GYqTxXQUyZQeGHqUptvDQz3KwM9Num3EKFUr9J2yzGPnz6lZVmQ==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @ngtools/[email protected] (sha512-PV3UNQINVxHZA1kkWaVds4GJaNXjMCJep0otkHP6ODZ3NNMnrKS8RS9HeqFUxQ+r4GnKj4qctbsdm3awRr1DsA==) seems to be corrupted. Trying one more time.
npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting @angular/forms@^6.0.0:
...

For anyone affected by the issue, please add the information about your local env (node -v + npm -v)

up! LOL

Node 8.11.2
npm 6.0.0

node v8.9.4
npm 6.0.1
same issue

Same problem here:

node: v6.14.2
npm: 3.10.10

Same issue when i try to install @clr/* packages to my Angular 6.0.2 project.
node -v v8.11.1 npm -v 6.0.1,
Maybe the issue issent related to Angular?

Same here

macOS High Sierra 10.13.4
Node.js v8.11.2
npm v6.0.1

same for angular 5.2.10.

on macos 10.13.4

npm 5.10.0
node v8.9.4
WARN tarball tarball data for @ngrx/[email protected]
WARN tarball tarball data for @angular/cdk@^5.0.0
WARN tarball tarball data for @angular/[email protected]
WARN tarball tarball data for @angular/material@^5.0.0
WARN tarball tarball data for @schematics/[email protected]
WARN tarball tarball data for @angular-devkit/[email protected]
WARN tarball tarball data for @swimlane/[email protected]
WARN tarball tarball data for @ngx-translate/[email protected]
WARN tarball tarball data for @angular/[email protected]
WARN tarball tarball data for @angular/[email protected]
npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting @angular/material@^5.0.0:
npm ERR! sha512-*** wanted sha512-*** but got sha512-*** (0 bytes)

@Samonia I'm using a package from @swimlane/ngx-charts, that one installed as it should. All the @types/* packages install fine as well. For me this issue only happens for the @angular/* packages.

node v8.10.0
npm 6.0.1

node v8.9.4
npm 6.0.1

Same error on angular 6.0.0

node v10.1.0
npm v6.0.1

same error
node v8.11.1
npm 6.0.1

Facing same tarball error!
node v9.11.1
npm 6.0.1

I installed yarn now and tried installing my project with it. No luck there, it gets stuck awfully long on the @angular/* packages and then exits with:

[1/4] Resolving packages...
error Couldn't find package "@angular/platform-server" on the "npm" registry.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

😞

Exactly same error!

Angular CLI: 6.0.1
Node: 8.9.4
npm: 6.0.1

A common factor seems to be npm 6, could anyone try with a downgrade to npm 5.x?

@HitomiTenshi Are you working on Windows or Linux? Asking because i think the problem originate in something else then @angular, everything was working yesterday.

"npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it."

Have tried the following commands to resolve the issue.
npm cache verify
npm cache clean --force

I literally just did the same @HitomiTenshi and yarn is not working either... I also built on the linux subsystem on my windows machine using npm and got the same issue

@jotatoledo Yes tried downgrading to npm 5.10 and still the same.

@jotatoledo tried downgrading to 3,4,5 always same problem.

I just tried installation with npm 5.6.0 which didn't work , upgraded npm to 6.0.1 with no luck either
node 8.11.2

with yarn :

yarn install v1.6.0
info No lockfile found.
[1/4] Resolving packages...
info There appears to be trouble with your network connection. Retrying...
⠠ @angular/core@^6.0.0

my network connection is OK...
but it try indefinitely!

I have the same problem. Tried every thing, nothing works.

@lamstutz I get that exact error with yarn v1.3.2

One hour ago it was working :(

Same errors in local env and aws codebuild
Local (mac);
node v8.9.4
npm 5.8.0

aws codebuild;
node v.8.11.0
npm 5.6.0

Getting the same errors with a different library (the first one in my package.json), seems to be an npm issue

@Samonia My issue description clearly states that I'm using Windows. The problem seems to affect every platform though.

Tried Yarn, but it complains about non-matching integrity hashes, just like npm.

[3/5] 🚚  Fetching packages...
error https://registry.yarnpkg.com/@angular/forms/-/forms-6.0.0.tgz: Fetch succeeded for "@angular/forms". However, extracting "https://registry.yarnpkg.com/@angular/forms/-/forms-6.0.0.tgz" resulted in hash "da39a3ee5e6b4b0d3255bfef95601890afd80709", which did not match the requested hash "436e2df39dc57db124da5a5c02bc63909fdf7046".

image

Not even allowing an npm install -g @angular/cli

Not sure that it´s a NPM issue...

angular2 Same issue here what its going on any solutions?

Same issue for me.
Angular CLI: 6.0.1
Node: 8.11.1
OS: darwin x64

Trying to install with yarn in a new project:

yarn install v1.6.0 info No lockfile found. [1/4] Resolving packages... error Couldn't find package "@ngtools/webpack" on the "npm" registry. info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

Partial output of ng -v

Angular CLI: 6.0.1
Node: 8.11.1
OS: win32 x64
Angular:
...

Same problem.

Node: 8.11.2
NPM 6.0.1
Angular CLI: 6.01

Yarn not working either:

yarn install v1.6.0
info No lockfile found.
[1/4] 🔍 Resolving packages...
⠄ @angular/common@^6.0.0

Not one package resolved. Infinte resolving issue...

Someone here have this issue on Linux or Mac?
When i turn of Windows real time protection the npm error change to npm ERR! Unexpected end of JSON input while parsing near ''

"Definition updates for Windows Defender Antivirus -KB2267602 (Definition 1.267.1445.0)
Successfully installed on ‎2018-‎05-‎16"

I have posted a tweet to Angular team here --> https://twitter.com/henry2man/status/996699677310537731

@Samonia Yes

@Samonia I'm using Mac and there´s no way using npm nor yarn.

It´s not an OS issue

@Samonia Issue also present on Mac

Same here trying to install any Angular packages for versions 4, 5 or 6.

Node : v6.14.2
npm : 3.10.10
OS : macOS High Sierra

Have tried various other versions of Node and npm this morning without success.

screenshot from 2018-05-16 12-37-43

+1 to the affected list. I thought I did something and my project stopped working. I am using Ionic 3. Cant even create new projects anymore. Seems like an angular issue though.

Same issue here. Thought it was something to do with Node version, but then finally found this topic...

Node: 8.11.2
NPM: 6.0.1
OS: Windows 10

Node: v10.1.0
NPM: 6.0.0
OS: Ubuntu 18.04

Same Issue.
Node: v8.11.1
NPM: 5.6.0
OS: Linux Mint 18.2

Angular CLI: 6.0.1
Node: 10.0.0
OS: darwin x64
+1

Same issue here.
Node: 10.1.0
NPM: 5.6.0
OS: macOS High Sierra

error https://registry.yarnpkg.com/@angular/common/-/common-5.2.8.tgz: Fetch succeeded for undefined. However, extracting "https://registry.yarnpkg.com/@angular/common/-/common-5.2.8.tgz" resulted in hash "da39a3ee5e6b4b0d3255bfef95601890afd80709", which did not match the requested hash "25c81609305e4cee6734d90c8ff1132ab35f81bf".

Yarn: 1.6.0
Node: 8.9.4
Angular: 5.2.8
Using VSTS build

Angular CLI: 6.0.1
Node: 10.0.0
OS: linux x64
Angular: 6.0.1
... animations, cdk, cli, common, compiler, compiler-cli, core
... forms, http, language-service, material, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.1
@angular-devkit/build-angular 0.6.1
@angular-devkit/build-optimizer 0.6.1
@angular-devkit/core 0.6.1
@angular-devkit/schematics 0.6.1
@ngtools/webpack 6.0.1
@schematics/angular 0.6.1
@schematics/update 0.6.1
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0


$npm outdated
Package Current Wanted Latest Location
@angular/animations 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/cdk 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/common 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/compiler 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/compiler-cli 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/core 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/forms 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/http 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/language-service 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/material 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/platform-browser 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/platform-browser-dynamic 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@angular/router 6.0.1 6.0.2 6.0.2 arm-analytics-spb
@types/node 10.0.8 10.1.0 10.1.0 arm-analytics-spb
codelyzer 4.2.1 4.2.1 4.3.0 arm-analytics-spb
jasmine-core 2.99.1 2.99.1 3.1.0 arm-analytics-spb
karma 1.7.1 1.7.1 2.0.2 arm-analytics-spb
karma-jasmine-html-reporter 0.2.2 0.2.2 1.1.0 arm-analytics-spb
source-map-support 0.5.5 0.5.6 0.5.6 arm-analytics-spb
tslint 5.9.1 5.9.1 5.10.0 arm-analytics-spb

typescript 2.7.2 2.8.3 2.8.3 arm-analytics-spb

$npm update
npm WARN tarball tarball data for @angular/[email protected] (sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-QoNJ/L0Xgtrj1KBp8wvxhHwRt+sQ5tBihWm82UbNgN82ZNnfNzQoAqtahbZN5AY7XFmGbDX+lVt3TdO8omXhmg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-XqTtfs/UzT2k2MeVQG1pOP+wR1zcH8V71S6kmWIwFcfyKUgZfIm45sNsZyBZPwY2RUqwCeZYQFjPlVW8wD1PBw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-928g7cnnRIJJx9/pC5GWqypcxrKkfijTCrCC6yeypvcgab1pmsk7m+1uE8VSFGIsUb6x8W3CF5nJUT1viuBIZg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg==) seems to be corrupted. Trying one more time.
npm WARN @mapbox/[email protected] requires a peer of mapbox-gl@^0.29.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/[email protected] requires a peer of typescript@~2.4.0 || ~2.5.0 || ~2.6.0 || ~2.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rxjs@^5.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of typescript@>=2.7.2 <2.8 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.4.2 <2.8 but none is installed. You must install peer dependencies yourself.

npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting @angular/[email protected]:
npm ERR! Verification failed while extracting @angular/[email protected]:
npm ERR! sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg== integrity checksum failed when using sha512: wanted sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg== but got sha512-STSPpZS0EAKzCZMbZc4lIsBAZP8H4zv73//VU2ebc6Gieuqj/4O217tCWepDU3I1etksZFJ+sxESjkOf0wrr4w==. (179623 bytes)
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/cdk-4db50acc/bundles/cdk-table.umd.js.map'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/compiler-cli-7376ed3a/src/transformers/compiler_host.d.ts'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/animations-d409084a/bundles/animations-browser.umd.min.js'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/forms-c97dda40/esm2015/src/validators.js'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/common-c8d54031/bundles/common.umd.min.js'
npm WARN tarball tarball data for @angular/[email protected] (sha512-EznIei5QGv4Hv+RtfCnI8TQPW7gLZBw7LrGPXSbwV/CXfY11ziEsd/h1lBfN3Wch3soIOXs3Qqk3zx//MrBG/Q==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/compiler-50020294/bundles/compiler.umd.js.map'
npm WARN tarball tarball data for @angular/[email protected] (sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/material-5e8a8eca/autocomplete/typings/public-api.d.ts'
npm WARN tarball tarball data for @angular/[email protected] (sha512-Yc3NnLGs1ltnDhUCOoMCQMRSkJv/sCv+jKx3uSdrvd8Y55APl2boZhZUK4WphPfWIkpvC7odpiLXAmnVgP6vcw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-QoNJ/L0Xgtrj1KBp8wvxhHwRt+sQ5tBihWm82UbNgN82ZNnfNzQoAqtahbZN5AY7XFmGbDX+lVt3TdO8omXhmg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-EznIei5QGv4Hv+RtfCnI8TQPW7gLZBw7LrGPXSbwV/CXfY11ziEsd/h1lBfN3Wch3soIOXs3Qqk3zx//MrBG/Q==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-Oc234cLjTj1tx2gF/nS/TIC3Auc+LCyC8H6GYqTxXQUyZQeGHqUptvDQz3KwM9Num3EKFUr9J2yzGPnz6lZVmQ==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-UY+S0FZkyDoxn5aaj5Ue3fGlOQKEnNBJXasaUQbSYKZiUkyFJkgmcSHRJlJuCAunJAtW3IIOhPSFxLZIj7lCHA==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-uKuM7dcTWwcElklT4E/tckp5fnGNUq4wDna3gZWO6fvc7FQK0SUU4l+A6C1d5YdCRgAsv6gxIrk3MxbSF9UwEw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-uKuM7dcTWwcElklT4E/tckp5fnGNUq4wDna3gZWO6fvc7FQK0SUU4l+A6C1d5YdCRgAsv6gxIrk3MxbSF9UwEw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-Yc3NnLGs1ltnDhUCOoMCQMRSkJv/sCv+jKx3uSdrvd8Y55APl2boZhZUK4WphPfWIkpvC7odpiLXAmnVgP6vcw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-Oc234cLjTj1tx2gF/nS/TIC3Auc+LCyC8H6GYqTxXQUyZQeGHqUptvDQz3KwM9Num3EKFUr9J2yzGPnz6lZVmQ==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-UY+S0FZkyDoxn5aaj5Ue3fGlOQKEnNBJXasaUQbSYKZiUkyFJkgmcSHRJlJuCAunJAtW3IIOhPSFxLZIj7lCHA==) seems to be corrupted. Trying one more time.

$ npm update
npm WARN tarball tarball data for @angular/[email protected] (sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-QoNJ/L0Xgtrj1KBp8wvxhHwRt+sQ5tBihWm82UbNgN82ZNnfNzQoAqtahbZN5AY7XFmGbDX+lVt3TdO8omXhmg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-XqTtfs/UzT2k2MeVQG1pOP+wR1zcH8V71S6kmWIwFcfyKUgZfIm45sNsZyBZPwY2RUqwCeZYQFjPlVW8wD1PBw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-928g7cnnRIJJx9/pC5GWqypcxrKkfijTCrCC6yeypvcgab1pmsk7m+1uE8VSFGIsUb6x8W3CF5nJUT1viuBIZg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg==) seems to be corrupted. Trying one more time.
npm WARN @mapbox/[email protected] requires a peer of mapbox-gl@^0.29.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ngtools/[email protected] requires a peer of typescript@~2.4.0 || ~2.5.0 || ~2.6.0 || ~2.7.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of rxjs@^5.5.0 but none is installed. You must install peer dependencies yourself.
npm WARN @angular/[email protected] requires a peer of typescript@>=2.7.2 <2.8 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of typescript@>=2.4.2 <2.8 but none is installed. You must install peer dependencies yourself.

npm ERR! code EINTEGRITY
npm ERR! Verification failed while extracting @angular/[email protected]:
npm ERR! Verification failed while extracting @angular/[email protected]:
npm ERR! sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg== integrity checksum failed when using sha512: wanted sha512-+ahJofKZFyaq0kLhKUOCa3Fo4WQ4mkMmYRqwFjKgjPupzPgMh0FkBsojuP1WiBd5KTIkv7U8B4sTziUxRDrKgg== but got sha512-STSPpZS0EAKzCZMbZc4lIsBAZP8H4zv73//VU2ebc6Gieuqj/4O217tCWepDU3I1etksZFJ+sxESjkOf0wrr4w==. (179623 bytes)
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/cdk-4db50acc/bundles/cdk-table.umd.js.map'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/compiler-cli-7376ed3a/src/transformers/compiler_host.d.ts'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/animations-d409084a/bundles/animations-browser.umd.min.js'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/forms-c97dda40/esm2015/src/validators.js'
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/common-c8d54031/bundles/common.umd.min.js'
npm WARN tarball tarball data for @angular/[email protected] (sha512-EznIei5QGv4Hv+RtfCnI8TQPW7gLZBw7LrGPXSbwV/CXfY11ziEsd/h1lBfN3Wch3soIOXs3Qqk3zx//MrBG/Q==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/compiler-50020294/bundles/compiler.umd.js.map'
npm WARN tarball tarball data for @angular/[email protected] (sha512-6hupeihL+MKYbP0xvHZiaVpYVF1XAlLpI1aTVLUhpzgnR8vgXCwni9iJlr7BZFyicVgApn6l7Oh2xIvMWftYhw==) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open '/home/sergiu/Workspaces/arm-analytics-spb/node_modules/.staging/@angular/material-5e8a8eca/autocomplete/typings/public-api.d.ts'
npm WARN tarball tarball data for @angular/[email protected] (sha512-Yc3NnLGs1ltnDhUCOoMCQMRSkJv/sCv+jKx3uSdrvd8Y55APl2boZhZUK4WphPfWIkpvC7odpiLXAmnVgP6vcw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-QoNJ/L0Xgtrj1KBp8wvxhHwRt+sQ5tBihWm82UbNgN82ZNnfNzQoAqtahbZN5AY7XFmGbDX+lVt3TdO8omXhmg==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-EznIei5QGv4Hv+RtfCnI8TQPW7gLZBw7LrGPXSbwV/CXfY11ziEsd/h1lBfN3Wch3soIOXs3Qqk3zx//MrBG/Q==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-Oc234cLjTj1tx2gF/nS/TIC3Auc+LCyC8H6GYqTxXQUyZQeGHqUptvDQz3KwM9Num3EKFUr9J2yzGPnz6lZVmQ==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-UY+S0FZkyDoxn5aaj5Ue3fGlOQKEnNBJXasaUQbSYKZiUkyFJkgmcSHRJlJuCAunJAtW3IIOhPSFxLZIj7lCHA==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-uKuM7dcTWwcElklT4E/tckp5fnGNUq4wDna3gZWO6fvc7FQK0SUU4l+A6C1d5YdCRgAsv6gxIrk3MxbSF9UwEw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-uKuM7dcTWwcElklT4E/tckp5fnGNUq4wDna3gZWO6fvc7FQK0SUU4l+A6C1d5YdCRgAsv6gxIrk3MxbSF9UwEw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-Yc3NnLGs1ltnDhUCOoMCQMRSkJv/sCv+jKx3uSdrvd8Y55APl2boZhZUK4WphPfWIkpvC7odpiLXAmnVgP6vcw==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-Oc234cLjTj1tx2gF/nS/TIC3Auc+LCyC8H6GYqTxXQUyZQeGHqUptvDQz3KwM9Num3EKFUr9J2yzGPnz6lZVmQ==) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha512-UY+S0FZkyDoxn5aaj5Ue3fGlOQKEnNBJXasaUQbSYKZiUkyFJkgmcSHRJlJuCAunJAtW3IIOhPSFxLZIj7lCHA==) seems to be corrupted. Trying one more time.

Same issue.
Node: 10.1.0
NPM: 6.0.1
OS: Windows 10

Same here
Node: 9.0.0
Npm: 6.0.1
Yarn: 1.6.0
OS : Ubuntu 18.04

Same issue here.
Node: 10.1.0
Npm: 6.0.1
OS: MacOS High Sierra

Same here
Node: 8.11.2
NPM: 6.0.1
OS: Ubuntu 16.04

Same here.
npm: 6.0.0
node: 10.0.0
angular cli: 6.0.0

Same
node:8.11.1
npm:5.6.0
OS: Centos

same her
node 8.11.2
npm: 5.6.0
OS: MacOS and Win10

It looks a network issue, I'm getting same behaviour like @lamstutz

common-6.0.2.tgz Error: Network error
https://registry.npmjs.org/@angular/common/-/common-6.0.2.tgz
RESUME

Note: We should keep this ticket clear, not saying "me too" all the time, looks a massive issue!

In fact I get the same behaviour with Angular 5.2.10 pacakges too, not only with Angular 6

@henry2man no news from their twitter account?

Something had happened with angular packages on npmjs registry side

npm install started working on my local machine after I started to use VPN from USA East cost. When I had problems I had no VPN on (connection from Finland). Issue remains in our Amazon AWS codebuilds (Ireland).

The whole internet broke completely. We're doomed.

Same issue in South Africa!

Same from Southern England

same from germany

Same here, my log says:

npm WARN tarball tarball data for @angular/[email protected] (sha1-f9TH+ku770wUaWL6lGuCczCmyO0=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @ngx-translate/[email protected] (sha1-AA8thjxMlMgY4UFu9DzKLFwMWEg=) seems to be corrupted. Trying one more time.
npm WARN tar ENOENT: no such file or directory, open 'C:\Users\source\repos\Project.Web\node_modules\.staging\@angular\common-b6b85d54\esm2015\http\testing.js'
npm WARN tarball tarball data for @angular/[email protected] (sha1-pKdK/H4gWNMLgmPrbWbarOn0J7o=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha1-msCPKTAu9gzf08eBDZbCZd7EY9Y=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha1-QwBas8i4/68Xaq+zuGupMcPkvfk=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha1-QwBas8i4/68Xaq+zuGupMcPkvfk=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha1-qSsrGGpuWjGp8VhJEd1qp+FsXeE=) seems to be corrupted. Trying one more time.
npm WARN [email protected] No description
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

npm ERR! path C:\Users\source\repos\Project.Web\node_modules\.staging\@ngx-translate\core-efcce50a\@ngx-translate\core.js
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall unlink
npm ERR! Error: EPERM: operation not permitted, unlink 'C:\Users\source\repos\Project.Web\node_modules\.staging\@ngx-translate\core-efcce50a\@ngx-translate\core.js'
npm ERR!  { Error: EPERM: operation not permitted, unlink 'C:\Users\source\repos\Project.Web\node_modules\.staging\@ngx-translate\core-efcce50a\@ngx-translate\core.js'
npm ERR!   cause:
npm ERR!    { Error: EPERM: operation not permitted, unlink 'C:\Users\source\repos\Project.Web\node_modules\.staging\@ngx-translate\core-efcce50a\@ngx-translate\core.js'
npm ERR!      errno: -4048,
npm ERR!      code: 'EPERM',
npm ERR!      syscall: 'unlink',
npm ERR!      path: 'C:\Users\source\repos\Project.Web\\node_modules\\.staging\\@ngx-translate\\core-efcce50a\\@ngx-translate\\core.js' },
npm ERR!   stack: 'Error: EPERM: operation not permitted, unlink \'C:\Users\source\repos\Project.Web\\node_modules\\.staging\\@ngx-translate\\core-efcce50a\\@ngx-translate\\core.js\'',
npm ERR!   errno: -4048,
npm ERR!   code: 'EPERM',
npm ERR!   syscall: 'unlink',
npm ERR!   path: 'C:\\Users\\source\\repos\\Project.Web\\node_modules\\.staging\\@ngx-translate\\core-efcce50a\\@ngx-translate\\core.js',
npm ERR!   parent: 'babywatcherweb' }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator (though this is not recommended).
npm WARN tarball tarball data for @angular/[email protected] (sha1-afMDxME9o8qg3mNDdYg4i2rWKyE=) seems to be corrupted. Trying one more time.
npm WARN tarball tarball data for @angular/[email protected] (sha1-f9TH+ku770wUaWL6lGuCczCmyO0=) seems to be corrupted. Trying one more time.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Me\AppData\Roaming\npm-cache\_logs\2018-05-16T10_53_25_192Z-debug.log

I actually didn't notice this issue until my build server started complaining about a failed build. it was complaining the following:

2018-05-16T10:02:26.5268708Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\array.js'
2018-05-16T10:02:26.5290960Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\date.js'
2018-05-16T10:02:26.5348380Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\function.js'
2018-05-16T10:02:26.5504325Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\index.js'
2018-05-16T10:02:26.5608832Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\map.js'
2018-05-16T10:02:26.5619531Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\math.js'
2018-05-16T10:02:26.5641974Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\number.js'
2018-05-16T10:02:26.5664376Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\object.js'
2018-05-16T10:02:26.7584078Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\parse-float.js'
2018-05-16T10:02:26.7640045Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\parse-int.js'
2018-05-16T10:02:26.7718597Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\promise.js'
2018-05-16T10:02:26.7893787Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\reflect.js'
2018-05-16T10:02:26.7991049Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\regexp.js'
2018-05-16T10:02:26.8092045Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\set.js'
2018-05-16T10:02:26.8190402Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\string.js'
2018-05-16T10:02:26.8200544Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\symbol.js'
2018-05-16T10:02:26.8244428Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\typed.js'
2018-05-16T10:02:26.8280260Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\weak-map.js'
2018-05-16T10:02:26.8315946Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\core-js-ea816ccc\es6\weak-set.js'
2018-05-16T10:02:27.8765504Z   npm WARN tar ENOENT: no such file or directory, lstat 'D:\a\1\s\Project.Web\node_modules\.staging\less-88b55357\test\less\import\deeper'
2018-05-16T10:02:28.0903426Z   npm WARN tar ENOENT: no such file or directory, lstat 'D:\a\1\s\Project.Web\node_modules\.staging\fsevents-e0be154f\node_modules\node-pre-gyp\lib'
2018-05-16T10:02:28.1315471Z   npm WARN tar ENOENT: no such file or directory, open 'D:\a\1\s\Project.Web\node_modules\.staging\less-88b55357\test\css\postProcessorPlugin\postProcessor.css'
2018-05-16T10:02:42.8469705Z   npm WARN [email protected] No description
2018-05-16T10:02:42.8471417Z   npm WARN [email protected] No repository field.
2018-05-16T10:02:42.8473447Z   npm WARN [email protected] No license field.
2018-05-16T10:02:42.8474798Z   
2018-05-16T10:02:42.8475292Z   npm ERR! code EINTEGRITY
2018-05-16T10:02:42.8476171Z   npm ERR! sha1-NQy99jz6yJOWE9dT/wce1YpgVhs= integrity checksum failed when using sha1: wanted sha1-NQy99jz6yJOWE9dT/wce1YpgVhs= but got sha1-2jmj7l5rSw0yVb/vlWAYkK/YBwk=. (0 bytes)
2018-05-16T10:06:03.2486217Z   
2018-05-16T10:06:03.2487307Z   npm ERR! A complete log of this run can be found in:
2018-05-16T10:06:03.2487914Z   npm ERR!     C:\npm\cache\_logs\2018-05-16T10_02_42_853Z-debug.log
2018-05-16T10:06:03.2972334Z D:\a\1\s\Project.Web\Project.Web.csproj(83,5): error MSB3073: The command "npm install" exited with code 1.
2018-05-16T10:06:03.3782161Z ##[error]Error: C:\Program Files\dotnet\dotnet.exe failed with return code: 1

Then I upgraded my npm to a new version (because why not), deleted node_modules folder in my project and starting to npm install which returned me the first logs I have provided.
I downgraded to 5.6.0 (version I was using before) and tried to do npm install, now it gives me the same error as my build server.

Log file gives me a stacktrace:

10142 verbose stack Error: sha1-msCPKTAu9gzf08eBDZbCZd7EY9Y= integrity checksum failed when using sha1: wanted sha1-msCPKTAu9gzf08eBDZbCZd7EY9Y= but got sha1-63K7MHD8i7C0bC9N6cx3AfQpgyQ=. (114089 bytes)
10142 verbose stack     at Transform.on (C:\Users\Me\AppData\Roaming\npm\node_modules\npm\node_modules\ssri\index.js:275:19)
10142 verbose stack     at emitNone (events.js:111:20)
10142 verbose stack     at Transform.emit (events.js:208:7)
10142 verbose stack     at endReadableNT (_stream_readable.js:1055:12)
10142 verbose stack     at _combinedTickCallback (internal/process/next_tick.js:138:11)
10142 verbose stack     at process._tickCallback (internal/process/next_tick.js:180:9)

But I am not sure if I have to complain here about it, I think angular is not to blame for this?

Same in Ukraine

Same in Poland [*]

Same in India

Issue disappears when connecting to an American VPN from the Netherlands

Folks, not saying this is a fix but attempting to install using a different registry has let me install Angular 5.

Used this from project directory npm install --registry http://registry.cnpmjs.org

Seems the issue is with https://registry.npmjs.org ?

Anyhow this was enough to let me get on with my day!

Looks like it's an npm registry issues on private (@) repos. not angular specific. But it does seem like angular is quite a popular framework/repo, as I haven't seen the same level of response elsewhere!

thank you @rabamus. Great workaround.

Yes. It looks like it might be the network layer that's corrupting the sha sums.
jovllin

So, the internet broke angular? or did angular broke the internet?

@rabamus

npm ERR! write after end
npm ERR! write after end
npm ERR! write after end
npm ERR! write after end
npm ERR! write after end
npm ERR! write after end
npm ERR! write after end
npm ERR! write after end

You are a genius @rabamus

@rabamus that did it locally! on npm5.6.0

@rabamus Thanks! Using npm install --registry http://registry.cnpmjs.org works! Cheers buddy.

not anymore, I guess :)

@rabamus saddly it didnt work for a fresh cli project

npm install --registry http://registry.cnpmjs.org npm ERR! write after end npm ERR! write after end npm ERR! write after end ...

Is it NPM issue or Angular team has uploaded some weired?

@Prozi @jotatoledo Not sure what the hell is going on there - are you guys able to access http://registry.cnpmjs.org even through the browser?

@jotatoledo I had the same issue. Just retry. I guess it's being bombarded right now lol

@HitomiTenshi lol they might not thank me for this then 😀

ok

If you get npm ERR! write after end
https://github.com/npm/npm/issues/19989

downgrade npm npm i npm@5 -g then use @rabamus answer

confirmed works

@Prozi I had npm ERR! write after end with npm v6. I guess this happens because the servers are under a lot of stress right now? I retried installing after that error and it went through on a fresh cli project.

How do I use a different registry in Ionic when starting a new project? Lol....

@rabamus I can access using the browser

also my project works again, thanks

jpietal@zenmonk:~$ node -v
v8.11.1
jpietal@zenmonk:~$ npm -v
5.10.0

@rabamus yes I am able to access it through the web (Netherlands)

@saadmomin Use ionic start [<name>] [<template>] --no-deps to skip running npm install automatically and then run npm install --registry http://registry.cnpmjs.org from inside the project directory afterwards.

I was experiencing this error for about 1:30, and then it just disappeared.
Do we know if this is was an Angular or Npm issue and how likely we are to get it again?

I'd recommend anybody who was suffering this has another go now.

For me it's working correct now, without doing anything.

@rabamus Thanks man!! Will try

--registry http://registry.cnpmjs.org works even with npm 6

@rabamus your solution helped, thanks.
Angular CLI: 6.0.1
Node: 10.0.0
OS: darwin x64
Angular: 6.0.2

@rabamus @Prozi @HitomiTenshi retried two times, issue is still present. Yes, I can open the registry in the browser.

node 8.11.1
npm 5.10.0

I give up for now 😄

npm install is working fine now for me (Spain)

It is fixed for me (Netherlands)

Fixed.

Yep, working.

Allright Angular team... no mater what you broke, had a time for a sillicon valley, so thanks.

Back to work : )

npm install is working again (Germany)

@jotatoledo Try that.

Fixed in Spain

💃

working fine in South Africa now!

@HitomiTenshi yup, the problem hat sich selbst gelöst 😄

That was the scariest 2 hours :)

working fine in France!

I deleted packages in C:/Program Files/nodejs/node_modules then tried npm install. It worked!

The issue seems to be resolved, I'm closing this issue.

not work yeat

this should be re-opened. @rabamus solution is definitely a workaround, and I can confirm it worked for me one time, and how it does not work.

@pleerock It's a problem with the npmjs registry. This issue has nothing to do with Angular. Initially when I started this issue I thought it was an Angular problem, because only Angular packages were affected. But it turns out npmjs has some issue with private scopes (packages that start with @something/*)

Check out https://status.npmjs.org/ or look at their twitter. I don't experience any problems right now though, so this might be some regional server problem on npmjs's side.

Yea I agree @HitomiTenshi - when it was causing issues it didn't seem to affect everyone and those who had access to VPNs in other countries were sometimes able to get around the problem.

Absolutely not a problem with Angular though. Purely a registry issue.

i tried a solution, after getting same error i stopped that process and enter in newly created directory, then i ran "npm install" and it took 2-3 minutes to reinstall itself in directory and everything is fine.Hurra ``

Looks like this problem is back. have anyone also encountering this issue since yesterday?

Filed a bug on npm forum
https://npm.community/t/getting-issue-in-npm-install-something-wrong-with-registry-warn-tarball-tarball-data-for-angular-compiler-7-1-0/3888

Facing the same issue

@SunilSalve24 pls watch this issue https://github.com/angular/angular/issues/27535
I've filed a fresh issue. Also, I've raised a support thread on NPM forum: https://npm.community/t/getting-issue-in-npm-install-warn-tarball-tarball-data-for-angular-compiler-7-1-0/3887

I request you to follow both.

Facing the same issue

I deleted packages in C:/Program Files/nodejs/node_modules then tried npm install. It worked!

dont do this. it will delete all the node packages and you will have to re install everything like node, angular, ionic (tried it)

I am getting the same error, reinstalled node/NPM, cleared cached, and removed the node_modules folder, removed angular/cli, and reinstalled it. Tried Every other solution found on StackOverflow, Github, askubuntu.com but nothing seems to work, facing the issue since last two days

P.S Restarted the machine(laptop) as well.

Was having this issue for angular-tree-component": "7.0.1". Since I wasn't using it, removed and everything worked well (added it a couple days ago to give it a try).

npm -v
6.4.1
node -v
v10.13.0

tarball tarball data for @schematics/[email protected]

errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink'

Few days back m able to create project .. suddenly its showing this...

Still facing same problem after reinstalling everything... Can anyone help ...

@vijayjsh339 ,I am also facing same issue and using below versions
npm -v : 6.4.1
node -v : 10.15.0
Can anyone help who overcome this problem

@Suganthn1217

Hi All,

Its worked for me finally. if possible pls follow the below steps..

  1. Delete npm_modules folder where n all it’s installed
  2. C:\Windows\System32node_modules
  3. C:\Windows\SysWOW64\node _modules
  4. C:\Users\UserPof\AppData\Roaming – npm & npm_cache
  5. Delete .nprmc file
  6. C:\Windows\SystemApps\Microsoft.Windows.Cortana_cw5n1h2txyewy – check any node related file is exist then delete.
  7. Then uninstall nodejs from control panel
  8. Delete nodeJs from your registry
    Steps to clean manually.
    https://www.iseepassword.com/blog/how-to-clean-registry-windows-10/

  9. Restart the System.

  10. Try to download node latest n install AngCli.

Thank U : )

Hey All,
After trying loads of combinations i finally found one that works.

npm 6.4.1
angular-cli 7.1.3

npm install [email protected] -g
npm install -g @angular/[email protected]

i'm using node v10.15.1 but not sure if that had any impact.

@mdownes' combination seemed to work for me.
I happen to be running node v8.12.0 and command line was run as an administrator.

for me is used,npm install dependent-package -g

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings