Reputation: 570
I am trying Nebular for the first time, following the tutorial from their website. I created a new angular project by installing Angular CLI. This is not my first Angular project, and Angular seems to work normally. I then tried to add Nabular with
sudo ng add @nebular/theme
The installation seems to be working correctly but then I get:
Cannot find module @angular-devkit/core/src/terminal
Require stack:
- node_modules/@nebular/theme/schematics/ng-add/register-modules/index.js
- node_modules/@nebular/theme/schematics/ng-add/setup.js
- node_modules/@angular-devkit/schematics/tools/export-ref.js
- node_modules/@angular-devkit/schematics/tools/index.js
- node_modules/@angular/cli/utilities/json-schema.js
- node_modules/@angular/cli/models/command-runner.js
- node_modules/@angular/cli/lib/cli/index.js
- .npm-packages/lib/node_modules/@angular/cli/lib/init.js
- .npm-packages/lib/node_modules/@angular/cli/bin/ng
I am pretty sure Nebular was NOT installed correctly since the app.module.ts
was not modified, nor the nebular styles were added in angular.json
.
What is the problem here?
Upvotes: 5
Views: 2932
Reputation: 71
I have the same bug. It might come from the current version of angular.
I managed to install nebular manually.
Follow the subsection manually:
Upvotes: 3
Reputation: 2004
It seems like there is an issue with regard to @angular-devkit
Try the following steps,
Step 1:
npm update -g @angular/cli
Step 2:
Edit your package.json
changing the line
"@angular/cli": "1.6.0",
to
"@angular/cli": "^1.6.0",
STEP 3:
npm update
Upvotes: -1