Friday, May 17, 2024
 Popular · Latest · Hot · Upcoming
21
rated 0 times [  21] [ 0]  / answers: 1 / hits: 11104  / 2 Years ago, thu, february 17, 2022, 10:34:26

I've installed Dart according to instructions from the official website (https://www.dartlang.org/tools/debian.html). To be more exactly:



$ sudo apt-get update
$ sudo apt-get install apt-transport-https
# Get the Google Linux package signing key.
$ sudo sh -c 'curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
# Set up the location of the stable repository.
$ sudo sh -c 'curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list'
$ sudo apt-get update
$ sudo apt-get install dart


Installation was successful, but some time later I found that there is no other related commands like pub, dart2js.



pub: command not found
dart2js: command not found


What's wrong?



OS: Ubuntu 14.10


More From » apt

 Answers
1

I know nothing about Dart, yet I downloaded the deb and looked inside it. The files you're looking for are located at /usr/lib/dart/bin/. You're getting "command not found" because that directory is not in $PATH.



You should be able to run them by providing the full path:



/usr/lib/dart/bin/dart2js


Or you may want to add /usr/lib/dart/bin to $PATH.


[#20849] Saturday, February 19, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingwhin

Total Points: 332
Total Questions: 112
Total Answers: 115

Location: Burkina Faso
Member since Tue, Apr 26, 2022
2 Years ago
;