Skip to content

npm install -g @graphprotocol/graph-cli AND yarn global add @graphprotocol/graph-cli are failing because of 'feat/smaller' being unavailable. #1264

@br0wnD3v

Description

@br0wnD3v

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

Using npm version 9.5.0 and yarn 1.22.19

The npm command is failing as

npm ERR! code 1
npm ERR! The git reference could not be found
npm ERR! command git --no-replace-objects checkout feat/smaller
npm ERR! error: pathspec 'feat/smaller' did not match any file(s) known to git

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/user/.npm/_logs/2023-04-09T20_32_01_402Z-debug-0.log

And the yarn command is failing as

error Couldn't find match for "feat/smaller" in "refs/heads/1.3.x,refs/heads/1.4.x,refs/heads/master,refs/tags/v1.3.2,refs/tags/v1.4.10,refs/tags/v1.4.11,refs/tags/v1.4.7,refs/tags/v1.4.8,refs/tags/v1.4.9,refs/tags/v1.5.0,refs/tags/v1.5.1,refs/tags/v1.5.2,refs/tags/v1.6.0,refs/tags/v1.6.1,refs/tags/v1.6.2,refs/tags/v2.0.0" for "https://github.com/hugomrdias/concat-stream.git".
info Visit https://yarnpkg.com/en/docs/cli/global for documentation about this command.

being the main reason.

Would appreciate any solution to this. Thanks : )

Reproduction

bash terminal

Steps to Reproduce the Bug or Issue

$npm install -g @graphprotocol/graph-cli
OR
$yarn global add @graphprotocol/graph-cli

Expected behavior

Should install the package @graphprotocol/graph-cli globally and allow the user call graph in the terminal.

Screenshots or Videos

No response

Platform

  • OS: Ubuntu
  • NodeJS: v18.15.0
  • @graphprotocol/graph-cli version(s): 0.45.0(The installation of older versions is failing too)

Subgraph Manifest

No response

Subgraph GraphQL Schema

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions