简体   繁体   English

安装npm模块大炮

[英]Installation of npm module artillery

When I run sudo npm install -g artillery it gives the following error: 当我运行sudo npm install -g artillery时,出现以下错误:

npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
/home/newgen/.npm-global/bin/artillery -> /home/newgen/.npm-global/lib/node_modules/artillery/bin/artillery
/home/newgen/.npm-global/lib
`-- artillery@1.6.0-2

Then if I run artillery it shows: 然后,如果我开artillery它将显示:

artillery: command not found

How do I solve this problem. 我该如何解决这个问题。

Try this: npm i artillery@1.6.0-2 -S . 试试这个: npm i artillery@1.6.0-2 -S This way you're specifying npm to install the artillery's latest release. 这样,您可以指定npm来安装炮兵的最新版本。

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

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