Hey guys,
Just a heads up, the Windows choco installation of Dart, cited here: https://www.dartlang.org/tools/sdk, does not add any Dart tools to the path. Even if this is intended, it is very difficult to find where exactly Dart tools are installed. I had to remove Dart in the end because of this and use the normal .msi installer.
Little things like this, that can be easily fixed or clarified in the instructions hurts overall adoption.
Thanks for letting us know, @seenickcode.
Can someone with Windows and chocolatey experience help us improve the instructions? The code is in https://github.com/dart-lang/site-www/blob/master/src/tools/sdk/_windows.md.
/cc @kevmoo
In my case Dart was installed via dependencies (on installing sass using choco), and it was installed automatically into C:\tools\dart-sdk directory. PATH variable in the registry was not updated.
Can the target directory be configured?
I'm fairly certain there's something you could do in the Chocolatey script that should be fairly easy.
Maybe this.
https://github.com/chocolatey/choco/wiki/HelpersInstallChocolateyEnvironmentVariable
i am a first time contributor and recently started learning about dart
Pardon me if i am wrong. I just tried out the installation from https://www.dartlang.org/tools/sdk and i did a refreshenv and i when i try dart from cli, i am able to see the dart documentation
I
i would like to reproduce the issue.
Please provide the version of windows and the logs of installation if possible
A simple note as to the precise location of the default install directory (seemingly tools\dart-sdk) would be a useful addition to the documentation - indeed, Googling around for hints as to the install path is what brought me to this issue. On a refreshenv the PATH updates work as expected, but it still took a bit of digging around to figure out where, precisely, these were actually installed such that I could point the IntelliJ path at the appropriate SDK install location.
Hi, could you just tell us how to install it in another folder? Or update the site to do manual install by downloading sdk manually...
There's a whole nother page about installing manually, but it (rightfully) isn't aimed at novices. I'd rather provide good directions for Chocolatey, and I was hoping someone in the community would be able to contribute a PR with those directions.
Well, losing control of what enters where in my computer is not what I expect to be a "novice" thing. Anyways, since you didn't point it anywhere, for anyone who got here for the same reason:
if you are using linux u can install with ez way with command > for debian base : sudo apt-get install dart . for arch base : sudo pacman -S dart / yay dart. u dont need to set path after installing dart u can start to coding dart on ur editor or terminal .
You can add path your-self by editing environment variable in your operating system setting
STEPS TO ADD PATH: (In windows)
NOTE: make sure you have downloaded dart-SDK on your pc
STEP1: Press windows key then type env, you will see edit environment variable option, click and open it
STEP2: In the newly opened window you will find Path as variable select it and click on edit.
STEP3: Then add the path to your dart-sdk folder.
STEP4: press enter and click ok 2 times
That's how you add path.
Well, while installing using choco, choco should automatically add path in the env.