简体   繁体   English

运行github上的angular dart教程时出错

[英]Error while running angular dart tutorial available on github

I am new to angular-dart. 我刚接触角箭。 I have no prior knowledge of DART. 我对DART不了解。 Working on angular since last 3 months. 从最近3个月开始从事角度工作。 I have downloaded the code from github. 我已经从github下载了代码。 Then i opened the chapter 1 code through File->open in Dart Editor.The file structure of the project is, Chapter_01 ---> 1) pubspec.yaml 2) Web 2.1)index.html 2.2)main.dart 3) README 然后我通过Dart编辑器中的File-> open打开第1章代码。项目的文件结构是Chapter_01 ---> 1)pubspec.yaml 2)Web 2.1)index.html 2.2)main.dart 3)README

in index.html there is reference to 在index.html中有对

The first and last js files are missing. 第一个和最后一个js文件丢失。 Where could i get them or how to generate them. 我在哪里可以得到它们或如何生成它们。 I right clicked on pubspec.yaml and chose the option Pub Get,for that i got the error as 我右键单击pubspec.yaml并选择了选项Pub Get,为此我得到了如下错误

"--- Jan 31, 2014 8:13:33 PM Running pub get ... --- Pub get failed, [1] Resolving dependencies....Got socket error trying to find package angular at https://pub.dartlang.org . “-2014年1月31日晚上8:13:33正在运行pub get ...-Pub失败,[1]解决了相关问题。...尝试在https:// pub上找到包角度的套接字错误.dartlang.org

** Warning: Application may fail to run since packages did not get installed.Try running pub get again. **警告:由于未安装软件包,因此应用程序可能无法运行。请尝试再次运行pub get。 ** " Also, in the main.dart file i am getting the error for the line "import 'package:angular/angular.dart';" as "Target of URI does not exist: 'package:angular/angular.dart'" **“另外,在main.dart文件中,我得到” import'package:angular / angular.dart';“行的错误,因为” URI的目标不存在:'package:angular / angular.dart' ”

Also i tried to ping the https://pub.dartlang.org .I got Destination net unreachable. 我也尝试ping https://pub.dartlang.org 。我无法访问目标网络。 But the same URL is accessible through my browser. 但是可以通过我的浏览器访问相同的URL。

Kindly help me to resolve the issue. 请帮助我解决问题。 I am using windows 7. 我正在使用Windows 7。

Thanks in advance. 提前致谢。

Regards, Mohan Savant 此致Mohan Savant

It's absolutely necessary that pub get succeeds. 成功pub get绝对是必要的。 It's useless to try something else before that works. 在可行之前尝试其他方法是没有用的。

  • Sometimes there are temporary problems with pub.dartlang.org. 有时pub.dartlang.org存在暂时性问题。 How often have you tried? 您尝试过几次? (never experienced this myself though) (虽然我自己从未经历过)
  • Another known source of such problems is a proxy. 此类问题的另一个已知来源是代理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM