[英]How to stop npm run my-script from outputting "script info", before the actual script output
當我運行以下命令時:
$ npm run test
運行腳本中有一些信息:
> my-module@1.0.0 test /Users/me/my-module
> echo "Error: no test specified" && exit 1
接下來是實際輸出:
Error: no test specified
有沒有辦法阻止 npm在運行腳本上輸出信息
您可以添加-s
選項使 npm 靜音(使用 npm v3.10.8 測試): npm run test -s
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.