Pergunta

I have an error while trying to get the packages for the angular dart codelab:

--- 10:01:28 Running pub get ... ---
Pub get failed, [1] Resolving dependencies........................................
Cannot create link, path = 'X:\Dev\Dart\ng-darrrt-codelab-master\packages\angular' (OS Error: Incorrect function.
, errno = 1)

I tried to remove everything in the packages folder and try again. All the packages download correctly, but the "Cannot create link" error persists...

I'm on windows server 2008 and I use DartEditor 1.2.0

Foi útil?

Solução

Instead of downloading packages for each project, pub downloads them to a cache directory and symbolic links it to your packages directory. This saves bandwidth because instead of downloading the package every time all it needs to do is symbolic link it from the cache. If pub is unable to create a symbolic link it throws the Cannot create link error. On windows it is not possible to symbolically link a folder from a local drive to a network drive. You can circumvent error by moving the file to a local drive and then running pub get.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top