2

我不太了解此错误消息以及如何解决此问题。我正在尝试安装的类型定义,mocha但我得到的只是以下错误消息:

$ typings install env~mocha
Attempted to compile "mocha" as an external module, but it looks like a global module.

我怎样才能解决这个问题?

4

1 回答 1

3

将其安装为全局模块(以前称为环境模块)。

$ typings install env~mocha --global
于 2016-06-12T11:06:22.647 回答