Thanks for going through this tutorial series. I did some digging around and it appears to be a Windows related issue, caused when having spaces in your path, so "Program Files".
You can follow the recommended solution via that link, or even better install Dart through the Chocolatey package manager for Windows. It should be placed on a path without spaces.
I did the install using Chocolatey, and this error remains.. I know it is a windows relates that the path is not defined .. but hot to set the Path so it can work... i am stuck in the installation.
Will appreciate if you can help, otherwise thank you.. .it frustrates me ..
The path is defined, its just that the Program Files folder has got spaces in it. It may be that the previous install of Dart is taking precedence over the Chocolatey install.
Can you confirm that running where dart in the command prompt is showing C:\tools\dart-sdk\bin\dart.exe? If its not happening then try these steps:
Uninstall the earlier install of Dart, the one in C:\Program Files...
HI jermaine,
I had problem running "pub global activate aqueduct" i get this error
"%1 is not a valid Win32 application.
Command: C:\Program Files\Dart\dart-sdk\lib_internal\pub\asset\7zip\7za.exe e data.tar.gz
can you help resolve this error
Hi @faridak ,
Thanks for going through this tutorial series. I did some digging around and it appears to be a Windows related issue, caused when having spaces in your path, so "Program Files".
You can follow the recommended solution via that link, or even better install Dart through the Chocolatey package manager for Windows. It should be placed on a path without spaces.
Try and let me know how that turns out.
Hi Jermaine,
I did the install using Chocolatey, and this error remains.. I know it is a windows relates that the path is not defined .. but hot to set the Path so it can work... i am stuck in the installation.
Will appreciate if you can help, otherwise thank you.. .it frustrates me ..
The path is defined, its just that the Program Files folder has got spaces in it. It may be that the previous install of Dart is taking precedence over the Chocolatey install.
Can you confirm that running
where dart
in the command prompt is showingC:\tools\dart-sdk\bin\dart.exe
? If its not happening then try these steps:C:\Program Files...
C:\tools\dart-sdk\bin
to your Path in Environment Variables.where dart
to confirm the correct path is showingOr you could just remove all installs of Dart, including Chocolatey's one and reinstall using Chocolatey. Should fix the path 🤞