Could not find file named "pubspec.yaml" in

I am new to Dart.

I am creating a simple web application, but when I want to launch it, I received this message in the "Output Tools":

Could not find file named "pubspec.yaml" in "/home/reza/.pubcache/hosted/pub.dartlang.org/browser-0.10.0+2".

How can I fix this problem?

I am using Ubuntu 14.04LTS 64bit and DartDditor 1.7.2

+5
source share
2 answers

This happened to me several times:

What ultimately decided for me (OS X) removes the pub pub:

sudo rm -Rf /Users/<username>/.pub-cache

Also delete the package directory in the root of the project:

sudo rm -Rf packages

Then pub get back in your project (s), but make sure that you are not working as root (a whoami will tell you and exit will get you out of there).

+2
source

It seems to me that your pub-pub is damaged. You can try to start pub cache repair from the command line, but I think it still does not work when the pubspec.yaml file is pubspec.yaml (there was an open problem about this - he found: http://dartbug.com/21418 ). Try deleting the /home/reza/.pubcache/hosted/pub.dartlang.org/browser-0.10.0+2 folder, and then run pub get from the project directory or from DartEditor.

0
source

Source: https://habr.com/ru/post/1207997/


All Articles