subsquid / squid-sdk

The main repo of the squid SDK
Apache License 2.0
1.23k stars 151 forks source link

squid-substrate-metadata-explorer: TypeError: minimatch is not a function #197

Closed jasl closed 1 year ago

jasl commented 1 year ago

Describe the bug Trying the latest squid-substrate-metadata-explorer 3.0.0

$ npx run squid-substrate-metadata-explorer --help
Watching /Users/jasl/Workspaces/BlockChain/cybros-network/squid and all sub-directories not excluded by your .gitignore. Will not monitor dotfiles.
/Users/jasl/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:127
        if (minimatch(file, pattern)) {
            ^

TypeError: minimatch is not a function
    at /Users/jasl/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:127:13
    at Array.forEach (<anonymous>)
    at parseFolder (/Users/jasl/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:113:9)
    at Object.<anonymous> (/Users/jasl/.npm/_npx/755986f37193a6d8/node_modules/run/run.js:63:12)
    at Module._compile (node:internal/modules/cjs/loader:1241:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    at Module.load (node:internal/modules/cjs/loader:1091:32)
    at Module._load (node:internal/modules/cjs/loader:938:12)
    at Module.require (node:internal/modules/cjs/loader:1115:19)
    at require (node:internal/modules/helpers:130:18)

Node.js v20.6.1

To Reproduce Steps to reproduce the behavior: npx run squid-substrate-metadata-explorer --help