Ios build fails on npm install

Hi guys, we’re having a problem creating an ios production build on ionic pro. We have built on ios many times before but now we seem to be getting this error which we can’t seem to fix:
Error in build log:

[13:10:19]: $ npm install --quiet
[13:15:01]: ▸ WARN tar zlib error: unexpected end of file
[13:15:01]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/cordova-plugin-splashscreen-2ba3c62a/doc/fr/index.md’
[13:15:01]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/acorn-700f058b/dist/walk.js’
[13:15:03]: ▸ npm ERR! code EINTEGRITY
[13:15:03]: ▸ npm ERR! sha512-EtM7gNAgMdQeUh8SW2bsaogywVS37lPhf2GYAf2vxR1pktxxT02CW8BHrx59MSbG3ZrRBbcOhpe03gts+eAbdA== integrity checksum failed when using sha512: wanted sha512-EtM7gNAgMdQeUh8SW2bsaogywVS37lPhf2GYAf2vxR1pktxxT02CW8BHrx59MSbG3ZrRBbcOhpe03gts+eAbdA== but got sha512-lwRVOIRwhlKnNB1fsWwxFAMH7xEOxVSv7ovApGg5b8l3rC0ZKwEP36sDLJRSx8zuUQS3Q+MZgilxZvoXKpQ4TA==. (65100 bytes)
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/swiper-bee92ff2/dist/js/swiper.min.js.map’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/parseBoltRules.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/cordova-plugin-splashscreen-2ba3c62a/doc/ko/index.md’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/extractTriggers.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/protractor-aafe8798/built/logger.js.map’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/parseTriggers.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/errorOut.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/prepareFunctionsUpload.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/error.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/prepareUpload.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/ensureDefaultCredentials.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/previews.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/ensureApiEnabled.js’
[13:15:08]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/firebase-tools-12505ff8/lib/profileReport.js’
[13:15:23]: ▸ WARN tar ENOENT: no such file or directory, open ‘/Users/ionic/builds/project-1/node_modules/.staging/onesignal-cordova-plugin-70adb3ef/src/windows/OneSignalSDK_WP_WNS.dll’
[13:16:19]: ▸ WARN tar zlib error: unexpected end of file
[13:16:21]: ▸ WARN tar zlib error: unexpected end of file
[13:16:29]: ▸ WARN tar zlib error: unexpected end of file
[13:18:01]: ▸ WARN tar zlib error: unexpected end of file

Any ideas on how to fix this? thanks.

2 Likes

Im having the same issue. Im wondering if this is a global issue or is related to some specific config.

1 Like

Same for me too.

[13:16:37]: Exit status of command ‘npm install --quiet’ was 1 instead of 0.
npm ERR! Unexpected end of JSON input while parsing near ‘…:"sha512-Yej+zOJ1Dm/I’
WARN tar zlib error: unexpected end of file
WARN tar zlib error: unexpected end of file

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/ionic/.npm/_logs/2018-05-08T13_11_23_666Z-debug.log

1 Like

Also got the same problem

I also have the same issue. I am importing from Creator using their instructions, but now I keep getting this. I’ve also seen a fail following some npm warnings. Has anyone been able to solve this?

I’ve fixed the other npm warnings, but it still fails at this

[04:29:03]: Installing provisioning profile…
[04:29:03]: --------------------------------
[04:29:03]: — Step: import_certificate —
[04:29:03]: --------------------------------
[04:29:03]: ---------------------------------
[04:29:03]: — Step: npm install --quiet —
[04:29:03]: ---------------------------------
[04:29:03]: $ npm install --quiet
ERROR: Job failed: execution took longer than 30m0s seconds

Same problem here!

All my iOS builds (also previous working) have been failing the past 48 hours…

[12:46:03]: $ npm install --quiet
[12:47:27]: ▸ WARN notice [SECURITY] debug has the following vulnerability: 1 low. Go here for more details: https://nodesecurity.io/advisories?search=debug&version=2.6.8 - Run `npm i npm@latest -g` to upgrade your npm version, and then `npm audit` to get more info.
[12:50:23]: ▸ WARN tar zlib error: unexpected end of file
[12:50:23]: ▸ WARN tar zlib error: unexpected end of file
[12:51:14]: ▸ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: webpack@3.8.1 (node_modules/webpack):
[12:51:14]: ▸ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Unexpected end of JSON input while parsing near '...ul":"^0.4.5","jade":"'
[12:51:14]: ▸ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: stream-http@2.8.2 (node_modules/stream-http):
[12:51:14]: ▸ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sha512-QllfrBhqF1DPcz46WxKTs6Mz1Bpc+8Qm6vbqOpVav5odAXwbyzwnEczoWqtxrsmlO+cJqtPrp/8gWKWjaKLLlA== integrity checksum failed when using sha512: wanted sha512-QllfrBhqF1DPcz46WxKTs6Mz1Bpc+8Qm6vbqOpVav5odAXwbyzwnEczoWqtxrsmlO+cJqtPrp/8gWKWjaKLLlA== but got sha512-vFrMSSnLsCc/trHFRZcLqnCCkhpg3mIy9MC/HeJz6qx3xXBJBnwhqQcGtH4AQ7bAsWbMsA1Dwn/NL1cbxX3SBg==. (40521 bytes)
[12:51:14]: ▸ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: tough-cookie@2.3.4 (node_modules/tough-cookie):
[12:51:14]: ▸ npm WARN optional SKIPPING OPTIONAL DEPENDENCY: sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA== integrity checksum failed when using sha512: wanted sha512-TZ6TTfI5NtZnuyy/Kecv+CnoROnyXn2DN97LontgQpCwsX2XyLYCC0ENhYkehSOwAp8rTQKc/NUIF7BkQ5rKLA== but got sha512-/9DJsgRq98cklVd8UgHz3NiT2ommlkL+ChpG6VjgnuyW9QhvNp8IGscZRxQS6v1Sh0a5AMwTlijPxNbPopbcpA==. (36422 bytes)
[12:51:14]: ▸ npm ERR! Unexpected end of JSON input while parsing near '...n-chai":"0.0.3","type'
ERROR: Job failed: execution took longer than 30m0s seconds
[14:05:17]: $ npm install --quiet
[14:08:31]: ▸ WARN tar zlib error: unexpected end of file
[14:08:31]: ▸ npm ERR! code EINTEGRITY
[14:08:31]: ▸ npm ERR! sha1-avilAjUNsyRuzEvs9rWjTSL37VM= integrity checksum failed when using sha1: wanted sha1-avilAjUNsyRuzEvs9rWjTSL37VM= but got sha1-RgYhw51KI3MGfByDWk+fXLoSEr4=. (3658 bytes)
ERROR: Job failed: execution took longer than 30m0s seconds

Same here…

[13:14:16]: $ npm install --quiet
[13:15:17]: ▸ WARN tar zlib error: unexpected end of file
[13:15:17]: ▸ npm ERR! code EINTEGRITY

Same for me:

[19:13:48]: --------------------------------- [19:13:48]: — Step: npm install --quiet — [19:13:48]: --------------------------------- [19:13:48]: $ npm install --quiet [19:18:30]: ▸ WARN tar zlib error: unexpected end of file [19:18:31]: ▸ npm ERR! code EINTEGRITY [19:18:31]: ▸ npm ERR! sha512-SRjimIDUHJkon+2hFo7xnvNC4ZEHGzCRwh9P7nzX3zPkCGFEg/tuElrNR7L/rZMagnK2JeH2jQwPRpmyXyLB6A== integrity checksum failed when using sha512: wanted sha512-SRjimIDUHJkon+2hFo7xnvNC4ZEHGzCRwh9P7nzX3zPkCGFEg/tuElrNR7L/rZMagnK2JeH2jQwPRpmyXyLB6A== but got sha512-Ij6lTTKRXNEY4mLD1wegcnyUAoxse62LnQ1LpJxo7DimZU+z8G+3E+J3vSliPFWHPWlfwgZXS6qOgeFSE79rhw==. (1358474 bytes) [19:18:37]: ▸ WARN tar zlib error: unexpected end of file [19:19:09]: ▸ WARN tar zlib error: unexpected end of file ERROR: Job failed: execution took longer than 30m0s seconds

I’m also having the same problem

I created a ticket and they marked it as solved. It looks like they had a general problem. The build works again. Maybe you should try too?

Tried and worked here as well.

Are anybody’s builds working again? Mine is now giving me more npm errors.