Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shellcheck 1.1.0 xz: (stdin): File format not recognized #130

Closed
Sandeep7409 opened this issue Jul 10, 2023 · 2 comments
Closed

Shellcheck 1.1.0 xz: (stdin): File format not recognized #130

Sandeep7409 opened this issue Jul 10, 2023 · 2 comments

Comments

@Sandeep7409
Copy link

I have one react application which using Shellcheck version 1.1.0 and when I try to npm install it fails
My shellcheck version is 1.1.0
Following is error I got:

command failed
npm ERR! command C:\Program Files\git\bin\bash.exe -c ./install.sh
npm ERR! xz: (stdin): File format not recognized
npm ERR! tar: Child died with signal 13
npm ERR! tar: Error is not recoverable: exiting now
npm ERR! node:events:505
npm ERR!       throw er; // Unhandled 'error' event

I feel like issue is with donwload.js file URL but not 100% sure. URL used in download.js file is below. I have windows 11 machine and I get process.platform value "win32" and If I replace that in below URL I get 404 not found because file does not exists on that URL.

const url = https://github.com/koalaman/shellcheck/releases/download/stable/shellcheck-stable.${process.platform}.x86_64.tar.xz;

@carlocorradini
Copy link
Collaborator

V1 is not compatible with Windows.
Please update to V2:

npm uninstall shellcheck
npm install shellcheck --save-dev

@Sandeep7409
Copy link
Author

Thank you it worked after upgrading to latest version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants