如何在Windows上运行Slack Botkit?

4

我正在创建一个新的Slack botkit应用程序,并在安装过程中遇到了问题。

在我的Windows 7系统上,Node.js和node-dependency已经正确安装。

https://github.com/howdyai/botkit

然后,在第四步,我运行了以下命令:

c:\bot\botkit > token=REPLACE_THIS_WITH_YOUR_TOKEN node bot.js
(I replaced with my api key.)

我的命令提示符显示如下内容:

'token' is not recognized as an internal or external command, operable program or batch file.

我认为这是针对Linux或Mac命令的问题,那么在Windows上该如何操作呢?


你为什么要使用尖括号? - Ben Fortune
1个回答

5
我找到了解决方案:
c:\bot\botkit > set token=REPLACE_THIS_WITH_YOUR_TOKEN

然后:

c:\bot\botkit > node bot.js

看起来它能够工作。

尖括号并非必要的。


网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接