editorconfig-checker: TAR_BAD_ARCHIVE: Unrecognized archive format
I don’t understand how to solve this problem. Is there a problem with my system?
$ npm run editorconfig
> editorconfig
> ec
ERROR: Error: TAR_BAD_ARCHIVE: Unrecognized archive format
at Unpack.warn (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/warn-mixin.js:19:40)
at Unpack.warn (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/unpack.js:200:18)
at Unpack.<anonymous> (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/parse.js:81:14)
at Unpack.emit (node:events:406:35)
at Unpack.[emit] (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/parse.js:285:12)
at Unpack.[maybeEnd] (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/parse.js:401:17)
at Unpack.[consumeChunk] (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/parse.js:432:21)
at Unpack.write (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/parse.js:364:25)
at Unpack.end (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/tar/lib/parse.js:477:14)
at Yallist.<anonymous> (/Users/vanyauhalin/Documents/programming-projects/test/node_modules/minipass/index.js:396:18) {
recoverable: false,
file: '/Users/vanyauhalin/Documents/programming-projects/test/node_modules/editorconfig-checker/dist/../ec.tar.gz',
cwd: '/Users/vanyauhalin/Documents/programming-projects/test/node_modules/editorconfig-checker',
code: 'TAR_BAD_ARCHIVE',
tarCode: 'TAR_BAD_ARCHIVE'
}
system macOS Big Sur 11.4 (M1)
npm 7.20.6
node v16.6.2
.ecrc
{
"exclude": ["node_modules"]
}
.editorconfig
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
.package.json
{
"private": true,
"scripts": {
"editorconfig": "ec"
},
"devDependencies": {
"editorconfig-checker": "^4.0.2"
}
}
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Reactions: 1
- Comments: 25 (12 by maintainers)
Commits related to this issue
- build: add `darwin-arm64` build target closes #178 — committed to editorconfig-checker/editorconfig-checker by mstruebing 2 years ago
- build: add `darwin-arm64` build target (#192) * build: add `darwin-arm64` build target closes #178 * docs: add changelog [skip-ci] Co-authored-by: mstruebing <mstruebing@users.noreply.github... — committed to editorconfig-checker/editorconfig-checker by mstruebing 2 years ago
I also encountered the problem. Turns out for the 4.0.2 and 4.0.1 releases the
CORE_VERSIONis hardcoded to 2.3.5, in the current master this is not the case.So either set your package.json to
"editorconfig-checker": "editorconfig-checker/editorconfig-checker.javascript.git#master"and compile yourself, or just use4.0.0for now.@mstruebing any news on an update here?
Wow - great 😄 I wasn’t really aware of that.
Anyone wants to try and find the root cause of that issue?
My solution is change node(v16) to node(v14)
There isn’t a new release on npm or here.
this issue is still reproducible and should be reopened! during package install - I get the version with darwin/amd but not darwin/arm
Somehow this issue is recurring. I have totally no idea what the cause is 🤷
Seems to be fixed in v2.5.0 🎉
https://github.com/npm/cli/issues/3229#issuecomment-1141614715