subsquid / squid-cli

CLI for managing squid deployments to the SQD Cloud
17 stars 16 forks source link

Error after successfully installing `sqd` with brew #35

Closed wottpal closed 1 year ago

wottpal commented 1 year ago

After installing sqd via brew as described here, I get the following error after running sqd --version. This is not happening with the global npm install (which I continue using now).

➜  ~ which sqd
/opt/homebrew/bin/sqd

➜  ~ sqd --version
(node:97289) [MODULE_NOT_FOUND] ModuleLoadError Plugin: @subsquid/cli: [MODULE_NOT_FOUND] require failed to load /snapshot/squid-cli/lib/commands/explorer.js: Cannot find module './widgets/text'
Require stack:
- /snapshot/squid-cli/node_modules/reblessed/dist/lib/widget.js
- /snapshot/squid-cli/node_modules/reblessed/dist/lib/reblessed.js
- /snapshot/squid-cli/lib/commands/explorer.js
- /snapshot/squid-cli/node_modules/@oclif/core/lib/module-loader.js
- /snapshot/squid-cli/node_modules/@oclif/core/lib/config/plugin.js
- /snapshot/squid-cli/node_modules/@oclif/core/lib/config/config.js
- /snapshot/squid-cli/node_modules/@oclif/core/lib/config/index.js
- /snapshot/squid-cli/node_modules/@oclif/core/lib/command.js
- /snapshot/squid-cli/node_modules/@oclif/core/lib/index.js
- /snapshot/squid-cli/bin/run.js
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
module: @oclif/core@1.26.1
task: toCached
plugin: @subsquid/cli
root: /snapshot/squid-cli
See more details with DEBUG=*
(Use `sqd --trace-warnings ...` to show where the warning was created)
@subsquid/cli/2.2.1 darwin-x64 node-v18.5.0
octo-gone commented 1 year ago

Thank you for the issue, will examine this problem.