-
Notifications
You must be signed in to change notification settings - Fork 240
Description
Hello,
I am trying to install appcenter-cli globally but it keeps failing, I am using the following:
Ubuntu 16.04
Yarn 1.12.3
Node 10.12.0
When running the command yarn global add appcenter-cli
, I get the following output:
t@T-Linux:~$ yarn global add appcenter-cli
yarn global v1.12.3
[1/4] Resolving packages...
warning appcenter-cli > unzip > fstream > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
[2/4] Fetching packages...
error https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.2.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "Unexpected end of data"
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.
After googling this issue, it seems the problem is simple - there is an error with the har-validator
package, and in a normal case all that is needed is deleting the yarn.lock
file and running yarn
to regenerate my yarn.lock
file with the correct reference to har-validator
. (reference 1) (reference 2)
My issue is that since I'm trying to install appcenter-cli globally, there is no yarn.lock
for me to delete. I've tried deleting the yarn caches by running yarn cache clean
, but I always get the same result when trying to install appcenter-cli.
Does anyone know how to fix this problem? Thanks in advance.