I just started learning angular. I'm creating an empty Angular project. When I try to run the project I get an error like the following. This may be the cause.
ng new intro
ng serve --open
argument fn must be a function TypeError: argument fn must be a function at Function.wrapfunction [as function] (C:\kurs\angularProjects\intro\node_modules\depd\index.js:399:11) at populateConstructorExports (C:\kurs\angularProjects\intro\node_modules\http-errors\index.js:264:45) at Object. (C:\kurs\angularProjects\intro\node_modules\http-errors\index.js:30:1) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:643:32) at Function.Module._load (internal/modules/cjs/loader.js:556:12) at Module.require (internal/modules/cjs/loader.js:683:19) at require (internal/modules/cjs/helpers.js:16:16) at Object. (C:\kurs\angularProjects\intro\node_modules\send\index.js:15:19) at Module._compile (internal/modules/cjs/loader.js:776:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:787:10) at Module.load (internal/modules/cjs/loader.js:643:32) at Function.Module._load (internal/modules/cjs/loader.js:556:12) at Module.require (internal/modules/cjs/loader.js:683:19) at require (internal/modules/cjs/helpers.js:16:16)
ng new intro
will generate a new project once that is done, then you run it withng serve --open
– robert