Ed *_*nek 27 powershell node.js npm angular
我从PowerShell尝试以下命令(作为管理员)
npm install @angular2-material
Run Code Online (Sandbox Code Playgroud)
并得到错误:
Unrecognized token in source text.
At line:1 char:13
+ npm install <<<< @angular2-material
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : UnrecognizedToken
Run Code Online (Sandbox Code Playgroud)
我甚至尝试过只获取一个A2M组件(核心)并得到相同的错误:
npm install @angular2-material/{core}
Run Code Online (Sandbox Code Playgroud)
知道我做错了什么吗?
npm:3.9.5
节点:6.2.2
操作系统:Win7
更新:
我在A2M GitHub上发现了以下问题 - 看起来它可能是PS的一个问题.
https://github.com/angular/material2/issues/297
更新2:
使用cmd代替PS工作.
Alb*_*iro 57
试试报价:
npm install "@angular2-material"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
9418 次 |
| 最近记录: |