onepub-dev / dcli

An extensive library and tooling for building console/cli applications and scripts using the Dart programming language.
236 stars 26 forks source link

fails to install on macos - continued issue from #202 #203

Closed RandalSchwartz closed 1 year ago

RandalSchwartz commented 1 year ago

Still broken.

Locohost.local:~ % dart pub global activate dcli
Package dcli is currently active at version 1.34.0.
+ archive 3.3.2dencies... (2.1s)
+ args 2.3.1
+ async 2.9.0
+ basic_utils 3.9.4 (5.4.0 available)
+ chunked_stream 1.4.1
+ circular_buffer 0.11.0
+ clock 1.1.1
+ collection 1.17.0
+ convert 3.1.1
+ crypto 3.0.2
+ csv 5.0.1
+ dart_console2 2.0.0
+ dcli 1.34.1
+ dcli_core 1.34.1 (1.35.1 available)
+ equatable 2.0.5
+ ffi 2.0.1
+ file 6.1.4
+ file_utils 1.0.1
+ glob 2.1.0
+ globbing 1.0.0
+ http 0.13.5
+ http_parser 4.0.2
+ ini 2.1.0
+ intl 0.17.0
+ js 0.6.5
+ json_annotation 4.7.0
+ logging 1.1.0
+ matcher 0.12.12
+ meta 1.8.0
+ mime 1.0.2
+ path 1.8.2
+ pointycastle 3.6.2
+ posix 4.0.1
+ pub_semver 2.1.2
+ pubspec2 2.4.1
+ quiver 3.1.0
+ random_string 2.3.1
+ scope 2.2.1 (3.0.0 available)
+ settings_yaml 3.5.0 (4.0.0 available)
+ source_span 1.9.1
+ stack_trace 1.11.0
+ stacktrace_impl 2.3.0
+ string_scanner 1.1.1
+ system_info2 2.0.4
+ term_glyph 1.2.1
+ typed_data 1.3.1
+ uri 1.0.0
+ uuid 3.0.6
+ validators2 3.0.0
+ vin_decoder 0.2.1-nullsafety
+ win32 2.7.0 (3.0.1 available)
+ yaml 3.1.1
Downloading dcli 1.34.1...
Downloading posix 4.0.1...
Downloading dcli_core 1.34.1...
Downloading stack_trace 1.11.0...
Downloading js 0.6.5...
Building package executables... (8.3s)
Built dcli:dcli.
Built dcli:dcli_install.
Built dcli:dcli_complete.
Installed executables dcli, dcli_complete and dcli_install.
Activated dcli 1.34.1.
Locohost.local:~ % dcli_install                 
Please Run: 
sudo -E dcli install
Locohost.local:~ % sudo -E dcli_install
   Woah! You appear to be trying to run flutter as root.
   We strongly recommend running the flutter tool without superuser privileges.
  /
📎
UnsupportedError: Unsupported operation: Operation 'toDartString' not allowed on a 'nullptr'. 
Stacktrace: utf8.dart : Utf8Pointer._ensureNotNullptr : 62
utf8.dart : Utf8Pointer.toDartString : 42
conversions.dart : copyCBuffToDartString : 53
pwd.dart : _buildPasswd : 288
pwd.dart : getpwnam : 134
simplified.dart : getPassword : 27
posix_shell.dart : PosixShell._resetUserEnvironment : 149
posix_shell.dart : PosixShell.releasePrivileges : 126
install.dart : InstallCommand.run : 90
command_line_runner.dart : CommandLineRunner.process : 98
entry_point.dart : EntryPoint._parseCmdLine : 41
entry_point.dart : EntryPoint.process : 36
dcli_install.dart : DCliInstall.run : 25
dcli_install.dart : main : 11
isolate_patch.dart : _delayEntrypointInvocation.<anonymous closure> : 295
isolate_patch.dart : _RawReceivePortImpl._handleMessage : 192
bsutton commented 1 year ago

resolved.