Skip to content

Difficulty installing: aws-sdk-2.1165.0.tgz - file appears to be corrupt #5320

@James-Oakley

Description

@James-Oakley

The issue template says to ask questions in the Zenko Forum. The Zenko forum says it's archived and inactive. So please direct this question to the required place.

I've just tried to install cloudserver using the latest (20.x) nodejs, and the latest yarn that was available from npm. This was otherwise a new server that had never before had any versions of nodejs installed on it.

After a couple of warnings, yarn install ran into an error:

warning Pattern ["httpagent@scality/httpagent#1.0.6"] is trying to unpack in the same destination "/home/zenko/.cache/yarn/v6/npm-httpagent-1.0.6/node_modules/httpagent" as pattern ["httpagent@github:scality/httpagent#1.0.6"]. This could result in non-deterministic behavior, skipping.
warning Pattern ["werelogs@scality/werelogs#8.1.2"] is trying to unpack in the same destination "/home/zenko/.cache/yarn/v6/npm-werelogs-8.1.2/node_modules/werelogs" as pattern ["werelogs@github:scality/werelogs#8.1.2"]. This could result in non-deterministic behavior, skipping.
error https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1165.0.tgz: Extracting tar content of undefined failed, the file appears to be corrupt: "ENOENT: no such file or directory, stat '/home/zenko/.cache/yarn/v6/npm-aws-sdk-2.1165.0-4da669d1e9020344cef75d961882f52a7931a379-integrity/node_modules/aws-sdk/dist/aws-sdk-react-native.js'"

The docs say to use nodejs 10.x and yarn 1.17.x. 10.x is very old - for Debian 11, it seems the supported major versions are currently nodejs 16, 18 and 20. Do I need to go back and find a way to install nodejs 10.x (even though security support ended in April 2021)? Or is the failure for yarn to install caused by something else?

I tried forcing npm install -g [email protected], but the same problem occurred, so it's not the yarn version.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions