问题
I dowloaded a Flutter sample code for Catalog from git, which showing me a warning,
'package get' has not been run
'Pub get' has not been run
What does it mean? How to solve it? Should I ignore this warnings or Update dependencies as suggested with links in warning?
回答1:
Dart is similar to node.
It has a pubspec.yaml
which is the equivalent of package.json
containing your dependencies and stuff.
And you need to download these dependencies, using pub get
. Or on the case of flutter, using flutter packages get
.
This warning is just here to reminds you that your dependencies aren't downloaded
=> Click on Get Dependencies
of the first warning
来源:https://stackoverflow.com/questions/49056126/flutter-package-get-has-not-been-run-pub-get-has-not-been-run