Search code examples
dartdart-pub

Get duplicate Dart Project Issue


I need to get copy or duplicate dart project from my friend, But when I get that and open existing folder and select that duplicate file. I am unable to run pub get, I got following error as

enter image description here

How can I copy a dart project from one system to another system, very strange problem. I run pub get more than 10 times.

Actually I delete all symlinks and again run pub get,pub upgrade the following error is occurs..enter image description here


Solution

  • You obviously have a permissions problem. There is nothing special about copying a Dart project. The packages directory and all packages symlinks in directories like web, bin, test, example, tool, should not be copied. If your copy includes these directories, just delete them and run pub get or pub upgrade again.