DEV Community

Andrew Coleman
Andrew Coleman

Posted on

Angular2 error

Whenever i run my Angular2 project in node.js coomand line, i receive the following error. Can someone please explain!

Local workspace file ('angular.json') could not be found.
Error: Local workspace file ('angular.json') could not be found.
at WorkspaceLoader._getProjectWorkspaceFilePath (C:\Users\Andrew\AppData\Roaming\npm\node_modules\@angular\cli\models\workspace-loader.js:37:19)

Top comments (2)

Collapse
 
andrew112 profile image
Andrew Coleman

Second Error:

After checking my angular install i receive this info! Whats is the Angular and webpack error saying? Markus

Angular CLI: 6.0.8
Node: 10.4.1
OS: win32 x64
Angular:
... common, compiler, core, forms, http, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.8
@angular-devkit/build-angular 0.6.8
@angular-devkit/build-optimizer 0.6.8
@angular-devkit/core 0.6.8
@angular-devkit/schematics 0.6.8 (cli-only)
@ngtools/webpack 6.0.8
@schematics/angular 0.6.8 (cli-only)
@schematics/update 0.6.8 (cli-only)
rxjs 6.2.1 (cli-only)
typescript 2.9.2
webpack

Collapse
 
kaaai3 profile image
kaaai3

Did you try to remove your node_modules folder and running 'npm install' already?