我在安装d3类型时遇到了问题。 我按照Microsoft在https://github.com/Microsoft/PowerBI-visuals/blob/master/Tutorial/Typings.md上的说明以及Sachin Patney在https://www.youtube.com/watch?v=_2-yMGtEv2w视频中所做的操作。
运行"npm install typings -g"似乎没有问题。
运行"typings install --save --global dt〜d3"或"typings i dt〜d3 -G"都会产生此错误:"typings ERR!message尝试将"d3"编译为全局模块,但它看起来像外部模块。 您需要删除全局选项才能继续。"
如果我删除全局选项,则会在我的可视化文件夹中使用"modules"文件夹路径添加typings信息,而不是"globals"文件夹路径(即,MyVisual | typings | modules | d3而不是MyVisual | typings | globals | d3)。 d3的智能感知也无法正常工作。
任何想法为什么我无法全局安装d3类型?