Trying to install Angular 2 Material from npm - unrecognized token in source text Trying to install Angular 2 Material from npm - unrecognized token in source text powershell powershell

Trying to install Angular 2 Material from npm - unrecognized token in source text


Try quotes:

npm install "@angular2-material"


The @ is making PowerShell treat @angular2-material as a variable.

  • You could use cmd.exe (command shell) instead of PowerShell

or

  • You could surround the package in quotes: e.g., "@angular2-material"


i have same issue faced when i typed command in editor but i got solution and i tried to command in system cmd so that execute easily and solved my problem.

so that try command in command prompt instead of editor.