首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >安装npm grunt-libsass时出错

安装npm grunt-libsass时出错
EN

Stack Overflow用户
提问于 2015-12-04 13:22:12
回答 1查看 253关注 0票数 0

我试着像这样安装grunt-libsass:

代码语言:javascript
复制
npm install grunt-libsass --save-dev

但是我得到了这个错误:

代码语言:javascript
复制
npm WARN engine grunt-libsass@0.2.1: wanted: {"node":"0.10.27"} (current: {"node":"5.1.1","npm":"3.3.12"})
npm WARN engine grunt-libsass@0.2.1: wanted: {"node":"0.10.27"} (current: {"node":"5.1.1","npm":"3.3.12"})
npm WARN deprecated grunt-libsass@0.2.1: No longer maintained

> node-sass@0.9.6 install /Applications/MAMP/htdocs/tome/wp-content/node_modules/node-sass
> node build.js

(node) child_process: options.customFds option is deprecated. Use options.stdio instead.
  CXX(target) Release/obj.target/binding/binding.o
In file included from ../binding.cpp:1:
../../nan/nan.h:189:68: error: too many arguments to function call, expected at most 2, have 4
    return v8::Signature::New(v8::Isolate::GetCurrent(), receiver, argc, argv);
           ~~~~~~~~~~~~~~~~~~                                      ^~~~~~~~~~
/Users/goliathus/.node-gyp/5.1.1/include/node/v8.h:4674:3: note: 'New' declared here
  static Local<Signature> New(
  ^
In file included from ../binding.cpp:1:
../../nan/nan.h:271:3: error: redefinition of 'NanNew'

错误说明了什么,以及如何修复它?

EN

回答 1

Stack Overflow用户

发布于 2015-12-04 19:53:29

我建议您使用grunt-sass而不是grunt-libsass,因为它不再需要维护。

此任务使用C++中的Sass编译器libsass。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34081425

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档