在Windows计算机上安装多包npm的正确语法是什么?
此声明在Windows计算机上安装多包npm的正确语法是什么?,npm,npm-install,Npm,Npm Install,此声明 npm安装--save@angular2 material/{core,button,card} (取自)收益率 在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:\\n
npm安装--save@angular2 material/{core,button,card}
(取自)收益率
在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的正确语法是什么?正确的命令是
npm i lodash hapi thinky when
。您可以通过以下命令阅读更多npm提示:
npm install --save @angular2-material/{core,button,card}
由bash扩展为:
npm install --save @angular2-material/core @angular2-material/button @angular2-material/card
在Windows上,您可以使用来实现完全相同的功能或手动展开命令。此
{package1,package2…}
技巧是针对bash的。这在PowerShell或cmd
中不起作用。要在Windows上实现这一点,请打开一个新的Git Bash(或等效的)终端并运行该命令,它应该可以工作。这样看来,这些安装说明是为了解释(扩展)而不是仅仅逐字应用的。
npm install --save @angular2-material/core @angular2-material/button @angular2-material/card