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.

ng add @angular/material

See original GitHub issue

Angular CLI: 6.0.0-rc.5 Node: 8.11.0 OS: darwin x64 Angular: 6.0.0-rc.5

when try to add angular material with commande : ng add @angular/material

i get this error :

telechargement 1

any idea ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:6
  • Comments:18

github_iconTop GitHub Comments

8reactions
ghostcommented, Jul 7, 2018

When i do:

npm install --save @angular/material @angular/cdk

it installs below:

Then, as per above solutions:

I do:

ng add @angular/material

it throws as below:

Installing packages for tooling via npm. Cannot read property ‘startTag’ of undefined

NPM Version: 6.1.0 Angular CLI: 6.0.8 Node: 8.11.3 OS: darwin x64 Angular: 6.0.7

7reactions
mrmokwacommented, Apr 19, 2018

Do you mind trying a new project from zero?

ng n teste-app cd teste-app npm install --save @angular/material@next @angular/cdk@next ng add @angular/material

Result I expect: image

My versions: image

Read more comments on GitHub >

github_iconTop Results From Across the Web

Getting started | Angular Material
The ng add command will install Angular Material, the Component Dev Kit (CDK), Angular Animations and ask you the following questions to determine...
Read more >
Angular Material Installation
Install the Angular CLI by using npm: npm install -g @angular/cli ... Create a workspace: ng new angular-material-app ... The add command will...
Read more >
angular-material
Installing AngularJS Material ; To install latest formal release npm install angular-material ; To install latest release and update package.json ...
Read more >
What Is Angular Material and How to Use It?
Steps to install Angular Material: · Step 1: Install the Angular CLI · Step 2: Create a workspace for Angular Project · Step...
Read more >
Angular Material Tutorial - Introduction, Installation and Usage
In this video, you will learn how to install and use Angular Material UI in your Angular project.We will create a new angular...
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