npm install --save @angular2-material/{core,button,card}
(从here拍摄)产生
At line:1 char:44
+ npm install --save @angular2-material/{core,button,card}
+ ~
Missing argument in parameter list.
+ CategoryInfo : ParserError: (:) [], ParentContainsErrorRecordException
+ FullyQualifiedErrorId : MissingArgument
在Windows PowerShell中和它产生
npm ERR! addLocal Could not install D:\VST\ngMaterial1\@angular2-material\{core,button,card}
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\nodejs\\node.exe" "D:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "@angular2-material/{core,button,card}"
npm ERR! node v5.10.1
npm ERR! npm v3.8.3
npm ERR! path D:\VST\ngMaterial1\@angular2-material\{core,button,card}
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'D:\VST\ngMaterial1\@angular2-material\{core,button,card}'
npm ERR! enoent ENOENT: no such file or directory, open 'D:\VST\ngMaterial1\@angular2-material\{core,button,card}'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! D:\VST\ngMaterial1\npm-debug.log
在Windows 控制台 (并且在PowerShell时--save
参数用引号括起)。
在Windows机器上多包npm安装的正确语法是什么?
看来这样的安装说明是打算被解释(展开)而不是仅仅逐字地应用。 – CalvinDale