如果我试试, (情况-1)
cd /path/
npm install slack-cli -g
slackcli -h "channelname" -t "token" -u "from_name" -m "message"
(在一个执行Windows批处理命令中)
第三行未执行,消息未进行
如果我试试, (情形2)
cd /path/
npm install slack-cli -g
(在一个执行Windows批处理命令中)
slackcli -h "channelname" -t "token" -u "from_name" -m "message"
(在另一个执行Windows批处理命令中)
我收到错误:
'slackcli' is not recognized as an internal or external command,
operable program or batch file.
答案 0 :(得分:0)
As seen here,安装语法应该是:
npm install -g slack-cli
之前存在安装问题(candrholdings/slack-cli issues 12)但现在应该有效(PR 27)。