문제 설명
npm grunt‑libsass 설치 오류 (Error installing npm grunt‑libsass)
다음과 같이 grunt‑libsass를 설치하려고 합니다.
npm install grunt‑libsass ‑‑save‑dev
하지만 다음 오류가 발생합니다.
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'
오류는 무엇이며 어떻게 수정하나요?
피>참조 솔루션
방법 1:
I recommend you to use grunt‑sass instead of grunt‑libsass because it is no longer maintained.
This task uses libsass which is a Sass compiler in C++.
(by Jakub Kohout、Louis Barranqueiro)