npm 没有说 "The build tools for VS2010 cannot be found"

npm fails saying "The build tools for VS2010 cannot be found"

我正在尝试在我的本地计算机上安装 Hubot。到目前为止进展顺利,直到我遇到这个错误。错误很明显:

Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.

不过我是运行Hubot初始化命令Yo Hubot。而且我无法使用 /m 开关。对我应该做什么有什么建议或建议吗?

启用并行构建不会解决您的问题,那只是一条信息性消息。真正的问题是您没有用于创建 Hubot 所需组件之一的 Visual Studio 版本。

试试这个:npm config set msvs_version 2012(或者 2013,如果你有的话)。