2015-07-08 25 views
5

Angular2 quickstart uygulamasını açıp çalıştırmaya çalışıyorum ama gulp komutunu çalıştırdığımda hatalarla karşılaşıyorum.Angular2 Quickstart gulp hatası

15.04 ubuntu sahibim. Nodejs v0.10.25 ve npm 1.4.21'i kurdum. Ayrıca gulp v3.9.0'ı da kurdum. Sonra

hello2ng2

https://github.com/angular/quickstart.git Sonra komuta

aşağıdaki hello2ng2 klasörünün içine gitti ve yayınlanan git clone

npm yüklemek

Ve kullanarak son angular2/quickstart klonlanmış ben quickstart uygulaması

'u oluşturmak için aşağıdaki komutu yayınladı

yudum I hatalarından aşağıdaki got

... bunu düzeltmek için ne kadar emin değildi. Yardım istiyorum.

[12:38:46] Starting 'default'... 
[12:38:46] Starting 'clean'... 
[12:38:46] Finished 'clean' after 13 ms 
[12:38:46] Starting 'build:ng2'... 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 

events.js:72 
     throw er; // Unhandled 'error' event 
      ^
Error: ENOENT, open '/home/usernm/angulartest/helloworld/hello2ng2/node_modules/angular2/es6/prod/angular2.api.map' 
npm WARN package.json [email protected] No repository field. 

events.js:72 
     throw er; // Unhandled 'error' event 
      ^
Error: ENOENT, open '/home/usernm/angulartest/helloworld/hello2ng2/node_modules/rtts_assert/es6/es5build.map' 
[12:38:54] 'build:ng2' errored after 7.5 s 
[12:38:54] Error in plugin 'gulp-shell' 
Message: 
    Command failed: npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected].0.0-alpha.30 No repository field. 
npm WARN package.json [email protected] No repository field. 

events.js:72 
     throw er; // Unhandled 'error' event 
      ^
Error: ENOENT, open '/home/usernm/angulartest/helloworld/hello2ng2/node_modules/angular2/es6/prod/angular2.api.map' 
npm WARN package.json [email protected] No repository field. 

events.js:72 
     throw er; // Unhandled 'error' event 
      ^
Error: ENOENT, open '/home/usernm/angulartest/helloworld/hello2ng2/node_modules/rtts_assert/es6/es5build.map' 

Details: 
    killed: false 
    code: 8 
    signal: null 
    stdout: 
    stderr: npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No repository field. 

events.js:72 
     throw er; // Unhandled 'error' event 
      ^
Error: ENOENT, open '/home/usernm/angulartest/helloworld/hello2ng2/node_modules/angular2/es6/prod/angular2.api.map' 
npm WARN package.json [email protected] No repository field. 

events.js:72 
     throw er; // Unhandled 'error' event 
      ^
Error: ENOENT, open '/home/usernm/angulartest/helloworld/hello2ng2/node_modules/rtts_assert/es6/es5build.map' 

[12:38:54] 'default' errored after 7.52 s 
[12:38:54] Error: [object Object] 
    at formatError (/usr/local/lib/node_modules/gulp/bin/gulp.js:169:10) 
    at Gulp.<anonymous> (/usr/local/lib/node_modules/gulp/bin/gulp.js:195:15) 
    at Gulp.EventEmitter.emit (events.js:117:20) 
    at Gulp.Orchestrator._emitTaskDone (/home/usernm/angulartest/helloworld/hello2ng2/node_modules/gulp/node_modules/orchestrator/index.js:264:8) 
    at /home/usernm/angulartest/helloworld/hello2ng2/node_modules/gulp/node_modules/orchestrator/index.js:275:23 
    at finish (/home/usernm/angulartest/helloworld/hello2ng2/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:21:8) 
    at cb (/home/usernm/angulartest/helloworld/hello2ng2/node_modules/gulp/node_modules/orchestrator/lib/runTask.js:29:3) 
    at finish (/home/usernm/angulartest/helloworld/hello2ng2/node_modules/run-sequence/index.js:53:5) 
    at Gulp.onError (/home/usernm/angulartest/helloworld/hello2ng2/node_modules/run-sequence/index.js:60:4) 
    at Gulp.EventEmitter.emit (events.js:117:20) 
+2

angular2-seed'i her zaman deneyebilirsiniz. Https://github.com/mgechev/angular2-seed –

+1

Başka bir rota deneyin: alfa sürümüne göre sıralanmış 2 değişik açı tipi [burada] (http: //www.tryangular2) com/kategori/Demirbaş). Klonladığınız repo şu anda 4 ay ve 16 versiyonda. – shmck

+0

Aynı sorunu yaşıyorum. Sorunlardan birine bakın [https://github.com/angular/quickstart/issues/18]. Açısal ekibin bir üyesi şöyle diyor: “Bu hızlı başlangıçtan daha iyi bir çözüm yerine kısa bir süre sonra gideceğiz.” –

cevap

3

Benzer bir sorunla karşılaştım. Öğretici (veya en azından bunu yazdığımda), gerekli olan minimum düğüm sürümünü belirtmez. En son düğümü/npm'yi yükleyin ve başka bir yere verin.

Ayrıca, en son öğretici yazdığınız zamandan bu yana çok daha gelişmiş, ancak yine de gerekli düğüm sürümünü göstermiyor. Düğümü güncelleştirdikten sonra, yeni tutorial'u gözden geçirmenizi öneririz. Google’a bu öğeyle ilgili bazı geri bildirimler verdim, bu yüzden yakında bu kadar yakında olacak.