Skip to content

An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json' #2648

Open
@kevin4dhd

Description

@kevin4dhd
  • bug report

Issue description

Current behavior:
execute ng serve
result
An unhandled exception occurred: Cannot find module '@angular-devkit/build-angular/package.json'

Expected behavior:
install the library with the cli and manually, in both cases they failed

Steps to reproduce:
npm install -g @angular/cli
ng new my-new-project
ng add @nebular/theme

Related code:
image

Other information:

npm, node, OS, Browser
$ npm --version
6.14.11

package.json
{
"name": "amplify-app",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"private": true,
"dependencies": {
"@angular/animations": "^11.0.9",
"@angular/cdk": "^10.2.7",
"@angular/common": "~11.0.9",
"@angular/compiler": "~11.0.9",
"@angular/core": "~11.0.9",
"@angular/forms": "~11.0.9",
"@angular/platform-browser": "~11.0.9",
"@angular/platform-browser-dynamic": "~11.0.9",
"@angular/router": "~11.0.9",
"@aws-amplify/ui-angular": "^0.4.17",
"@nebular/eva-icons": "^7.0.0-beta.2",
"@nebular/theme": "^7.0.0-beta.2",
"aws-amplify": "^3.3.14",
"eva-icons": "^1.1.3",
"rxjs": "~6.6.0",
"tslib": "^2.0.0",
"zone.js": "~0.10.2"
},
"devDependencies": {
"@angular/cli": "^11.0.7",
"@angular/compiler-cli": "~11.0.9",
"@schematics/angular": "~11.0.7",
"@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1",
"codelyzer": "^6.0.0",
"jasmine-core": "~3.6.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~5.1.0",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"tslint": "~6.1.0",
"typescript": "~4.0.2"
}
}

OS: Windows 10
Browser: Chrome

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions