vishalxl / nostr_console

Nostr console is an open-source twitter-like social network, direct chat app and group chat all bundled into one program. Built on the decentralized Nostr protocol.
GNU Affero General Public License v3.0
439 stars 33 forks source link

Errors on compile under MacOS #4

Closed shawnyeager closed 2 years ago

shawnyeager commented 2 years ago

I'm not familiar with dart, so I ran brew install dart-sdk, then executed dart run bin/nostr_console.dart. Maybe I should know to manually install packages, but here's the output:

Error: Couldn't resolve the package 'bip340' in 'package:bip340/bip340.dart'.
Error: Couldn't resolve the package 'nostr_console' in 'package:nostr_console/event_ds.dart'.
Error: Couldn't resolve the package 'nostr_console' in 'package:nostr_console/tree_ds.dart'.
Error: Couldn't resolve the package 'nostr_console' in 'package:nostr_console/relays.dart'.
Error: Couldn't resolve the package 'nostr_console' in 'package:nostr_console/console_ui.dart'.
Error: Couldn't resolve the package 'args' in 'package:args/args.dart'.
nostr_console.dart:2:8: Error: Not found: 'package:bip340/bip340.dart'
import 'package:bip340/bip340.dart';
       ^
nostr_console.dart:4:8: Error: Not found: 'package:nostr_console/event_ds.dart'
import 'package:nostr_console/event_ds.dart';
       ^
nostr_console.dart:5:8: Error: Not found: 'package:nostr_console/tree_ds.dart'
import 'package:nostr_console/tree_ds.dart';
       ^
nostr_console.dart:6:8: Error: Not found: 'package:nostr_console/relays.dart'
import 'package:nostr_console/relays.dart';
       ^
vishalxl commented 2 years ago

hey, can you run the dart command to get all the dependency packages by running

dart pub get

Another related command is

dart pub deps

which shows the dependencies. Kindly paste any interesting result if it shows any error too.

shawnyeager commented 2 years ago

That did the trick. Thanks, @vishalxl. 🙏🏼