Tôi đang cố gắng để có được ứng dụng quickstart angular2 và chạy nhưng chạy vào các lỗi khi tôi chạy lệnh gulp.Angular2 Lỗi gulp Quickstart
Tôi có ubuntu 15.04. Tôi đã cài đặt nodejs v0.10.25 và npm 1.4.21. Tôi cũng cài đặt gulp v3.9.0. Tôi nhân bản mới nhất angular2/quickstart sử dụng
git clone https://github.com/angular/quickstart.git hello2ng2
Sau đó, tôi đi vào trong thư mục hello2ng2 và ban hành lệnh
sauNPM cài đặt
Và rồi tôi đã ban hành lệnh sau để xây dựng ứng dụng quickstart
ngụm
tôi bị lỗi sau đây ... không chắc chắn làm thế nào để sửa chữa nó. Tim sự giup đơ.
[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] 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)
bạn luôn có thể thử các hạt giống angular2 https://github.com/mgechev/angular2-seed –
Hãy thử một tuyến đường khác: một loạt các nồi hơi 2 góc cạnh được sắp xếp theo phiên bản alpha [ở đây] (http: //www.tryangular2 .com/category/Boilerplate). Repo bạn đã sao chép hiện tại là 4 tháng và 16 phiên bản sau. – shmck
Tôi có cùng một vấn đề. Hãy xem một trong các vấn đề [https://github.com/angular/quickstart/issues/18]. Một thành viên của nhóm Angular đề cập đến: 'Chúng tôi sẽ sớm chuyển sang giai đoạn nhanh hơn thay vì giải pháp tốt hơn'. –