question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItĀ collects links to all the places you might be looking at while hunting down a tough bug.

And, if youā€™re still stuck at the end, weā€™re happy to hop on a call to see how we can help out.

gulp print errors

See original GitHub issue

I create an app as following šŸ‘

? What is the name of your app? fullstack ? What is your username on Github? some-username-here ? What stack do you want? Full, client or server? fullstack ? What do you want in server side? node ? What do you want in client side? ng2 ? What transpiler do you want to use in server side? typescript ? Do you want a secure app (http/2)? No ? Do you want to use a different static server? Such as nginx, apache, IIS? No

And then run npm run dev or just run gulp:

npm run dev

fullstack@0.0.1 dev /Users/mai/Develop/learn/web/angular2/fullstack tsc && concurrently ā€œnpm startā€ ā€œgulpā€

node_modules/@angular/core/src/application_ref.d.ts(79,88): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/application_ref.d.ts(137,42): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/application_ref.d.ts(196,33): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(24,15): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(26,16): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/di/reflective_provider.d.ts(115,123): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/di/reflective_provider.d.ts(115,165): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/async.d.ts(34,33): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/async.d.ts(35,45): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name ā€˜MapConstructorā€™. node_modules/@angular/core/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name ā€˜SetConstructorā€™. node_modules/@angular/core/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/collection.d.ts(100,41): error TS2304: Cannot find name ā€˜Setā€™. node_modules/@angular/core/src/facade/collection.d.ts(101,22): error TS2304: Cannot find name ā€˜Setā€™. node_modules/@angular/core/src/facade/collection.d.ts(102,25): error TS2304: Cannot find name ā€˜Setā€™. node_modules/@angular/core/src/facade/lang.d.ts(11,17): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/lang.d.ts(12,17): error TS2304: Cannot find name ā€˜Setā€™. node_modules/@angular/core/src/facade/lang.d.ts(68,59): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/core/src/facade/promise.d.ts(9,14): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(15,32): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(16,38): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(17,35): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(17,93): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(18,34): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(18,50): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(19,32): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(19,149): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/facade/promise.d.ts(20,43): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/compiler.d.ts(13,59): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/component_resolver.d.ts(9,58): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/component_resolver.d.ts(13,49): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(61,148): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(102,144): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(107,139): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(108,135): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/systemjs_component_resolver.d.ts(18,53): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/src/linker/systemjs_component_resolver.d.ts(26,53): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/testing/component_fixture.d.ts(77,19): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/core/testing/test_component_builder.d.ts(74,57): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/async.d.ts(34,33): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/async.d.ts(35,45): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(9,14): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(15,32): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(16,38): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(17,35): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(17,93): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(18,34): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(18,50): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(19,32): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(19,149): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/forms/src/facade/promise.d.ts(20,43): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/http/src/headers.d.ts(45,59): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/http/src/url_search_params.d.ts(46,16): error TS2304: Cannot find name ā€˜Mapā€™. node_modules/@angular/platform-browser-dynamic/index.d.ts(81,90): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/platform-browser-dynamic/index.d.ts(85,99): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/@angular/platform-browser-dynamic/index.d.ts(89,99): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/rxjs/Observable.d.ts(10,66): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/rxjs/Observable.d.ts(66,60): error TS2304: Cannot find name ā€˜Promiseā€™. node_modules/rxjs/Observable.d.ts(66,70): error TS2304: Cannot find name ā€˜Promiseā€™. server/api/todo/controller/todo-controller.ts(1,26): error TS2307: Cannot find module ā€˜expressā€™. server/api/todo/dao/todo-dao.ts(1,27): error TS2307: Cannot find module ā€˜mongooseā€™. server/api/todo/dao/todo-dao.ts(2,26): error TS2307: Cannot find module ā€˜bluebirdā€™. server/api/todo/dao/todo-dao.ts(3,20): error TS2307: Cannot find module ā€˜lodashā€™. server/api/todo/model/todo-model.ts(1,27): error TS2307: Cannot find module ā€˜mongooseā€™. server/api/todo/routes/todo-routes.ts(3,26): error TS2307: Cannot find module ā€˜expressā€™. server/commons/static/index.ts(3,26): error TS2307: Cannot find module ā€˜expressā€™. server/commons/static/index.ts(4,21): error TS2307: Cannot find module ā€˜fsā€™. server/commons/static/index.ts(8,19): error TS2304: Cannot find name ā€˜processā€™. server/config/db.conf.ts(3,27): error TS2307: Cannot find module ā€˜mongooseā€™. server/config/db.conf.ts(4,15): error TS2304: Cannot find name ā€˜requireā€™. server/config/db.conf.ts(8,20): error TS2304: Cannot find name ā€˜processā€™. server/config/db.conf.ts(8,61): error TS2304: Cannot find name ā€˜processā€™. server/config/routes.conf.ts(3,26): error TS2307: Cannot find module ā€˜expressā€™. server/config/routes.conf.ts(4,25): error TS2307: Cannot find module ā€˜morganā€™. server/config/routes.conf.ts(5,29): error TS2307: Cannot find module ā€˜body-parserā€™. server/config/routes.conf.ts(6,25): error TS2307: Cannot find module ā€˜helmetā€™. server/config/routes.conf.ts(10,21): error TS2304: Cannot find name ā€˜processā€™. server/config/routes.conf.ts(12,29): error TS2304: Cannot find name ā€˜processā€™. server/routes/index.ts(1,26): error TS2307: Cannot find module ā€˜expressā€™. server/server.ts(1,1): error TS6053: File ā€˜typings/index.d.tsā€™ not found. server/server.ts(5,22): error TS2304: Cannot find name ā€˜processā€™. server/server.ts(6,5): error TS2304: Cannot find name ā€˜requireā€™. server/server.ts(8,12): error TS2304: Cannot find name ā€˜processā€™. server/server.ts(10,26): error TS2307: Cannot find module ā€˜expressā€™. server/server.ts(11,21): error TS2307: Cannot find module ā€˜osā€™. server/server.ts(12,23): error TS2307: Cannot find module ā€˜httpā€™. server/server.ts(26,34): error TS2304: Cannot find name ā€˜processā€™. tests/client/todo/components/todo-cmp_test.ts(1,1): error TS6053: File ā€˜typings/index.d.tsā€™ not found. tests/client/todo/components/todo-cmp_test.ts(62,9): error TS2304: Cannot find name ā€˜spyOnā€™. tests/client/todo/services/todo-service_test.ts(1,1): error TS6053: File ā€˜typings/index.d.tsā€™ not found.

npm ERR! Darwin 15.0.0 npm ERR! argv ā€œ/usr/local/bin/nodeā€ ā€œ/usr/local/bin/npmā€ ā€œrunā€ ā€œdevā€ npm ERR! node v6.2.2 npm ERR! npm v3.9.5 npm ERR! code ELIFECYCLE npm ERR! fullstack@0.0.1 dev: tsc && concurrently "npm start" "gulp" npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the fullstack@0.0.1 dev script ā€˜tsc && concurrently ā€œnpm startā€ ā€œgulpā€ā€™. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the fullstack package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! tsc && concurrently ā€œnpm startā€ ā€œgulpā€ npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs fullstack npm ERR! Or if that isnā€™t available, you can get their info via: npm ERR! npm owner ls fullstack npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /Users/mai/Develop/learn/web/angular2/fullstack/npm-debug.log

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
ericmdantascommented, Jul 18, 2016

Hello, @maimake.

Make sure you run typings install before running npm run dev - thereā€™s a topic in the wiki about it.

0reactions
ericmdantascommented, Jul 19, 2016

Released 1.8.16 šŸ˜„

// other
"preinstall": "typings install",
"postinstall": "tsc",
// other
Read more comments on GitHub >

github_iconTop Results From Across the Web

Catching errors on Gulp.js - Boris - Medium
The recommended way to notify about occurred errors in gulp plugins is an emitting `error` event. But node.js streams, which are actuallyĀ ...
Read more >
gulp error handling for dependent task - Stack Overflow
If an error occurs, it will stop your gulp process. You just have to redefine your task like : gulp.task('jshint', function () {...
Read more >
How do I log errors with Gulp.js? - Laracasts
I'm getting weird errors when I run my default gulp task. I tried to log the errors with plumber but I do something...
Read more >
@ronilaukkarinen/printer-for-errors-of-gulp-plugins - npm
This is a message logging tool for gulp. It parses gulp's PluginError instance, and is expected to print a more beautiful log for...
Read more >
Gulp, Browserify, and error handling | Aten Design Group
Within our check for on('error') we are doing a couple different things. First we're printing the error stack to the terminal. This is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found