简体   繁体   English

npm config set前缀:“命令的语法不正确”

[英]npm config set prefix: “the syntax of the command is incorrect”

I need to install @angular/cli on the build server so it's available to all build processes which may need to call it via PowerShell cmd. 我需要在构建服务器上安装@ angular / cli,以便所有可能需要通过PowerShell cmd调用的构建过程都可以使用它。 I was following the instructions on this SO page: 我正在按照此SO页面上的说明进行操作:

Making Global NPM packages available to all users on windows 2012 server 使Windows 2012 Server上的所有用户均可使用Global NPM软件包

I was able to set the prefix once but I made a typo. 我可以设置一次前缀,但是我打错了字。 So now I'm trying to set an updated prefix but now the following cmd returns the error "The syntax of the command is incorrect": 因此,现在我尝试设置更新的前缀,但是现在以下cmd返回错误“命令的语法不正确”:

npm config set prefix <C:\Users\ME\AppData\Roaming\npm>

Any idea why I might be getting this error? 知道为什么我会收到此错误吗?

尝试使用""代替<>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM