根据教程安装dart
:
sudo apt-get update
sudo apt-get install apt-transport-https
sudo sh -c 'wget -qO- https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -'
sudo sh -c 'wget -qO- 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
例如,之后我已经被提议使用pub
pub global activate aqueduct
但是没有这样的命令
Command 'pub' not found, did you mean:...
但是,如果在VS Code中在任何文件夹中创建pubspec.yaml
并注册依赖项,则在保存文件时将安装这些依赖项,并在弹出窗口中写入
pub get: running
如何安装pub
,以便可以在终端中手动运行此命令?