sindresorhus / grunt-sass

Compile Sass to CSS
MIT License
1.01k stars 209 forks source link

npm install grunt-sass --save-dev fails #238

Closed rayvafa closed 9 years ago

rayvafa commented 9 years ago

npm WARN package.json test@1.0.0 No description npm WARN package.json test@1.0.0 No repository field. npm WARN package.json test@1.0.0 No README data /

node-sass@3.2.0 install /Users/ray.vafa/repositories/test/node_modules/grunt-sass/node_modules/node-sass node scripts/install.js

Cannot download "https://github.com/sass/node-sass/releases/download/v3.2.0/darwin-x64-45_binding.node": HTTP error 404 Not Found

node-sass@3.2.0 postinstall /Users/ray.vafa/repositories/test/node_modules/grunt-sass/node_modules/node-sass node scripts/build.js

Building: /Users/ray.vafa/.nvm/versions/io.js/v3.0.0/bin/iojs node_modules/pangyp/bin/node-gyp rebuild --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= CXX(target) Release/obj.target/libsass/src/libsass/ast.o CXX(target) Release/obj.target/libsass/src/libsass/base64vlq.o CXX(target) Release/obj.target/libsass/src/libsass/bind.o CC(target) Release/obj.target/libsass/src/libsass/cencode.o CXX(target) Release/obj.target/libsass/src/libsass/constants.o CXX(target) Release/obj.target/libsass/src/libsass/context.o CXX(target) Release/obj.target/libsass/src/libsass/contextualize.o CXX(target) Release/obj.target/libsass/src/libsass/contextualize_eval.o CXX(target) Release/obj.target/libsass/src/libsass/cssize.o CXX(target) Release/obj.target/libsass/src/libsass/emitter.o CXX(target) Release/obj.target/libsass/src/libsass/error_handling.o CXX(target) Release/obj.target/libsass/src/libsass/eval.o CXX(target) Release/obj.target/libsass/src/libsass/expand.o CXX(target) Release/obj.target/libsass/src/libsass/extend.o CXX(target) Release/obj.target/libsass/src/libsass/file.o CXX(target) Release/obj.target/libsass/src/libsass/functions.o CXX(target) Release/obj.target/libsass/src/libsass/inspect.o CXX(target) Release/obj.target/libsass/src/libsass/json.o CXX(target) Release/obj.target/libsass/src/libsass/lexer.o CXX(target) Release/obj.target/libsass/src/libsass/listize.o CXX(target) Release/obj.target/libsass/src/libsass/node.o CXX(target) Release/obj.target/libsass/src/libsass/output.o CXX(target) Release/obj.target/libsass/src/libsass/parser.o CXX(target) Release/obj.target/libsass/src/libsass/plugins.o CXX(target) Release/obj.target/libsass/src/libsass/position.o CXX(target) Release/obj.target/libsass/src/libsass/prelexer.o CXX(target) Release/obj.target/libsass/src/libsass/remove_placeholders.o CXX(target) Release/obj.target/libsass/src/libsass/sass.o CXX(target) Release/obj.target/libsass/src/libsass/sass2scss.o CXX(target) Release/obj.target/libsass/src/libsass/sass_context.o CXX(target) Release/obj.target/libsass/src/libsass/sass_functions.o CXX(target) Release/obj.target/libsass/src/libsass/sass_util.o CXX(target) Release/obj.target/libsass/src/libsass/sass_values.o CXX(target) Release/obj.target/libsass/src/libsass/source_map.o CXX(target) Release/obj.target/libsass/src/libsass/to_c.o CXX(target) Release/obj.target/libsass/src/libsass/to_string.o CXX(target) Release/obj.target/libsass/src/libsass/units.o CXX(target) Release/obj.target/libsass/src/libsass/utf8_string.o CXX(target) Release/obj.target/libsass/src/libsass/util.o LIBTOOL-STATIC Release/sass.a CXX(target) Release/obj.target/binding/src/binding.o In file included from ../src/binding.cpp:1: ../node_modules/nan/nan.h:324:27: error: redefinition of 'NanEnsureHandleOrPersistent' NAN_INLINE v8::Local NanEnsureHandleOrPersistent(const v8::Local &val) { ^ ../node_modules/nan/nan.h:319:17: note: previous definition is here v8::Handle NanEnsureHandleOrPersistent(const v8::Handle &val) { ^ ../node_modules/nan/nan.h:344:27: error: redefinition of 'NanEnsureLocal' NAN_INLINE v8::Local NanEnsureLocal(const v8::Handle &val) { ^ ../node_modules/nan/nan.h:334:27: note: previous definition is here NAN_INLINE v8::Local NanEnsureLocal(const v8::Local &val) { ^ ../node_modules/nan/nan.h:757:13: error: no member named 'smalloc' in namespace 'node' , node::smalloc::FreeCallback callback


../node_modules/nan/nan.h:768:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/ray.vafa/.node-gyp/3.0.0/src/node_buffer.h:35:40: note: candidate function not viable: no known conversion from 'uint32_t' (aka 'unsigned int') to 'enum encoding' for 3rd argument
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node_buffer.h:47:40: note: candidate function not viable: 2nd argument ('const char _') would lose const qualifier
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
                                       ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node_buffer.h:32:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate, size_t length);
                                       ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node_buffer.h:40:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate\* isolate,
                                       ^
In file included from ../src/binding.cpp:1:
../node_modules/nan/nan.h:772:12: error: no viable conversion from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'const v8::Localv8::Object &' for 1st argument
class Local {
      ^
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object &&' for 1st argument
class Local {
      ^
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:327:13: note: candidate template ignored: could not match 'S _' against 'v8::MaybeLocalv8::Object'
  V8_INLINE Local(S_ that)
            ^
In file included from ../src/binding.cpp:1:
../node_modules/nan/nan.h:779:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
In file included from ../src/binding.cpp:3:
In file included from ../src/sass_context_wrapper.h:10:
In file included from ../src/custom_function_bridge.h:6:
../src/callback_bridge.h:117:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
    node::FatalException(try_catch);
          ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated here
                inline void FatalException(const v8::TryCatch& try_catch) {
                            ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    **attribute**((deprecated(message))) declarator
                                         ^
In file included from ../src/binding.cpp:3:
In file included from ../src/sass_context_wrapper.h:10:
In file included from ../src/custom_function_bridge.h:6:
../src/callback_bridge.h:138:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
    node::FatalException(try_catch);
          ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated here
                inline void FatalException(const v8::TryCatch& try_catch) {
                            ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    **attribute**((deprecated(message))) declarator
                                         ^
../src/binding.cpp:13:25: warning: unused variable 'ctx_w' [-Wunused-variable]
  sass_context_wrapper\* ctx_w = static_cast<sass_context_wrapper*>(cookie);
                        ^
../src/binding.cpp:225:11: warning: 'FatalException' is deprecated: Use FatalException(isolate, ...) [-Wdeprecated-declarations]
    node::FatalException(try_catch);
          ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node.h:283:29: note: 'FatalException' has been explicitly marked deprecated here
                inline void FatalException(const v8::TryCatch& try_catch) {
                            ^
/Users/ray.vafa/.node-gyp/3.0.0/src/node.h:66:42: note: expanded from macro 'NODE_DEPRECATED'
    **attribute**((deprecated(message))) declarator
                                         ^
In file included from ../src/binding.cpp:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/ray.vafa/.node-gyp/3.0.0/src/node.h:42:
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    _(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:501:12: note: in instantiation of function template specialization 'v8::Localv8::Primitive::Localv8::Value' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))

```
                         ^
```

In file included from ../src/binding.cpp:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/ray.vafa/.node-gyp/3.0.0/src/node.h:42:
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Boolean _volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:511:12: note: in instantiation of function template specialization 'v8::Localv8::Boolean::Localv8::Value' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))

```
                         ^
```

In file included from ../src/binding.cpp:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/ray.vafa/.node-gyp/3.0.0/src/node.h:42:
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Function _volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1645:12: note: in instantiation of function template specialization 'v8::Localv8::Function::Localv8::Value' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))

```
                         ^
```

In file included from ../src/binding.cpp:1:
In file included from ../node_modules/nan/nan.h:24:
In file included from /Users/ray.vafa/.node-gyp/3.0.0/src/node.h:42:
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:221:5: error: assigning to 'v8::Object _volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/ray.vafa/.node-gyp/3.0.0/deps/v8/include/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T_ volatile_>(0)) = static_cast<S_>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:1776:12: note: in instantiation of function template specialization 'v8::Localv8::Object::Localv8::Value' requested here
    return NanEscapeScope(
           ^
../node_modules/nan/nan.h:483:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(Nan::imp::NanEnsureLocal(val))

```
                         ^
```

4 warnings and 10 errors generated.
make: **\* [Release/obj.target/binding/src/binding.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/ray.vafa/repositories/test/node_modules/grunt-sass/node_modules/node-sass/node_modules/pangyp/lib/build.js:271:23)
gyp ERR! stack     at emitTwo (events.js:87:13)
gyp ERR! stack     at ChildProcess.emit (events.js:172:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 14.4.0
gyp ERR! command "/Users/ray.vafa/.nvm/versions/io.js/v3.0.0/bin/iojs" "/Users/ray.vafa/repositories/test/node_modules/grunt-sass/node_modules/node-sass/node_modules/pangyp/bin/node-gyp" "rebuild" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /Users/ray.vafa/repositories/test/node_modules/grunt-sass/node_modules/node-sass
gyp ERR! node -v v3.0.0
gyp ERR! pangyp -v v2.3.0
gyp ERR! not ok 
Build failed
npm ERR! Darwin 14.4.0
npm ERR! argv "/Users/ray.vafa/.nvm/versions/io.js/v3.0.0/bin/iojs" "/Users/ray.vafa/.nvm/versions/io.js/v3.0.0/bin/npm" "install" "grunt-sass" "--save-dev"
npm ERR! node v3.0.0
npm ERR! npm  v2.13.3
npm ERR! code ELIFECYCLE

npm ERR! node-sass@3.2.0 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@3.2.0 postinstall script 'node scripts/build.js'.
npm ERR! This is most likely a problem with the node-sass package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node scripts/build.js
npm ERR! You can get their info via:
npm ERR!     npm owner ls node-sass
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/ray.vafa/repositories/test/npm-debug.log
sindresorhus commented 9 years ago

Will be fixed when this is resolved: https://github.com/sass/node-sass/issues/1053