我想安装新的angular2-material npm软件包,但它似乎是一个范围包,我不知道如何在Windows下管理它。对于PowerShell,@ Symbol似乎有问题。
npm install --save @angular2-material/{core}
Unrecognized token in source text.
At line:1 char:20
+ npm install --save <<<< @angular2-material/{core}
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnrecognizedToken
有人有想法吗?
答案 0 :(得分:1)
好的,发现.. 它需要 Powershell 3.0 才能将@ -symbol用于作用域包。
答案 1 :(得分:1)
如果您不能或不想更新到Powershell 3.0+,则可以使用反引号(`)来转义@符号:
npm install `@angular2-material/{core}