grunt-browser-sync将无法安装

时间:2014-08-24 11:16:26

标签: node.js gruntjs npm sync

我愿意在我的项目中使用grunt-browser-sync插件,但我不能,因为它不会安装。

当我输入

npm install grunt-browser-sync --save-dev

在我的项目的根文件夹上的终端上,插件开始安装,然后它给了我各种错误。

enter image description here

我还是尝试过运行它,这就是终端所说的:

enter image description here

并且该插件的npm模块文件夹看起来有点"空"对我来说:

enter image description here

我真的不是npm,grunt等的大专家。我很难搞清楚在这些情况下该怎么做所以非常感谢帮助:)我真的需要有这个工作

谢谢!

1 个答案:

答案 0 :(得分:0)

browser-sync需要一些在您的计算机上本机编译的模块。 Node使用node-gyp执行此操作,https://www.npmjs.com/package/node-gyp您需要在计算机上安装python才能运行构建脚本。你还需要一个c编译器