mechio / takana

Takana lets you see your SCSS and CSS style changes live, in the browser, as you type them
http://takana.io
MIT License
1.11k stars 61 forks source link

Can't install :( #90

Closed arturogh closed 8 years ago

arturogh commented 8 years ago

I can't install Takana, please help!

I'm including what I get on iTerm and the debug log. npm-debug.txt

iTerm:

✘ ✝  ~  sudo npm install -g takana Password:

websocket@1.0.22 install /usr/local/lib/node_modules/takana/node_modules/websocket (node-gyp rebuild 2> builderror.log) || (exit 0)

CXX(target) Release/obj.target/bufferutil/src/bufferutil.o SOLINK_MODULE(target) Release/bufferutil.node CXX(target) Release/obj.target/validation/src/validation.o SOLINK_MODULE(target) Release/validation.node

fsevents@1.0.5 install /usr/local/lib/node_modules/takana/node_modules/chokidar/node_modules/fsevents node-pre-gyp install --fallback-to-build

[fsevents] Success: "/usr/local/lib/node_modules/takana/node_modules/chokidar/node_modules/fsevents/lib/binding/Release/node-v46-darwin-x64/fse.node" is installed via remote

node-sass@1.0.3 install /usr/local/lib/node_modules/takana/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: ../node_modules/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/arturogoicochea/.node-gyp/4.2.2/include/node/v8.h:4675:3: note: 'New'
      declared here
  static Local<Signature> New(
  ^
In file included from ../binding.cpp:1:
../node_modules/nan/nan.h:271:3: error: redefinition of 'NanNew'
  NanNew<v8::StringObject, v8::Handle<v8::String> >(
  ^
../node_modules/nan/nan.h:264:3: note: previous definition is here
  NanNew<v8::StringObject, v8::Local<v8::String> >(
  ^
../node_modules/nan/nan.h:289:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:283:36: note: previous definition is here
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:301:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:295:36: note: previous definition is here
  NAN_INLINE v8::Localv8::RegExp NanNew(
                                   ^
../node_modules/nan/nan.h:481:19: error: no type named
      'ExternalAsciiStringResource' in 'v8::String'; did you mean
      'ExternalStringResource'?
      v8::String::ExternalAsciiStringResource *resource) {
      ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
                  ExternalStringResource
/Users/arturogoicochea/.node-gyp/4.2.2/include/node/v8.h:2210:19: note:
      'ExternalStringResource' declared here
  class V8_EXPORT ExternalStringResource
                  ^
In file included from ../binding.cpp:1:
../node_modules/nan/nan.h:480:36: error: redefinition of 'NanNew'
  NAN_INLINE v8::Localv8::String NanNew(
                                   ^
../node_modules/nan/nan.h:475:36: note: previous definition is here
  NAN_INLINE v8::Localv8::String NanNew(
                                   ^
../node_modules/nan/nan.h:495:27: error: redefinition of '_NanEscapeScopeHelper'
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:490:27: note: previous definition is here
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Handle<T> val) {
                          ^
../node_modules/nan/nan.h:511:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:499:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:495:27: note: candidate template ignored: substitution
      failure [with T = v8::Primitive]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:516:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::Null(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:499:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:495:27: note: candidate template ignored: substitution
      failure [with T = v8::Primitive]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:521:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:499:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:495:27: note: candidate template ignored: substitution
      failure [with T = v8::Boolean]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:526:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(v8::False(v8::Isolate::GetCurrent())));
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:499:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:495:27: note: candidate template ignored: substitution
      failure [with T = v8::Boolean]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:755:13: error: no member named 'smalloc' in namespace
      'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../node_modules/nan/nan.h:766:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/arturogoicochea/.node-gyp/4.2.2/include/node/node_buffer.h:31: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/arturogoicochea/.node-gyp/4.2.2/include/node/node_buffer.h:43:40: note:
      candidate function not viable: 2nd argument ('const char _') would lose
      const qualifier
NODE_EXTERN v8::MaybeLocalv8::Object New(v8::Isolate_ isolate,
                                       ^
/Users/arturogoicochea/.node-gyp/4.2.2/include/node/node_buffer.h:28: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/arturogoicochea/.node-gyp/4.2.2/include/node/node_buffer.h:36: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 ../binding.cpp:1:
../node_modules/nan/nan.h:770:12: error: no viable conversion from
      'v8::MaybeLocalv8::Object' to 'v8::Localv8::Object'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/arturogoicochea/.node-gyp/4.2.2/include/node/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/arturogoicochea/.node-gyp/4.2.2/include/node/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/arturogoicochea/.node-gyp/4.2.2/include/node/v8.h:214:13: note:
      candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/arturogoicochea/.node-gyp/4.2.2/include/node/v8.h:326:13: note:
      candidate template ignored: could not match 'S _' against
      'v8::MaybeLocalv8::Object'
  V8_INLINE Local(S_ that)
            ^
In file included from ../binding.cpp:1:
../node_modules/nan/nan.h:777:26: error: no member named 'Use' in namespace
      'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
../node_modules/nan/nan.h:1809:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:499:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:495:27: note: candidate template ignored: substitution
      failure [with T = v8::Function]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:1824:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(node::MakeCallback(
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:499:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:495:27: note: candidate template ignored: substitution
      failure [with T = v8::Value]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:1897:12: error: no matching function for call to
      '_NanEscapeScopeHelper'
    return NanEscapeScope(handle->Get(NanNew(key)).Asv8::Object());
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../node_modules/nan/nan.h:499:43: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEscapeScopeHelper(val))

```
                                      ^~~~~~~~~~~~~~~~~~~~~
```

../node_modules/nan/nan.h:495:27: note: candidate template ignored: substitution
      failure [with T = v8::Object]
  NAN_INLINE v8::Local<T> _NanEscapeScopeHelper(v8::Local<T> val) {
                          ^
../node_modules/nan/nan.h:2103:12: error: no member named 'IsExternalAscii' in
      'v8::String'; did you mean 'IsExternal'?
  if (str->IsExternalAscii()) {
           ^~~~~~~~~~~~~~~
           IsExternal
/Users/arturogoicochea/.node-gyp/4.2.2/include/node/v8.h:2174:8: note:
      'IsExternal' declared here
  bool IsExternal() const;
       ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: **\* [Release/obj.target/binding/binding.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270: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 15.0.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/takana/node_modules/node-sass
gyp ERR! node -v v4.2.2
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
Build failed
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "takana"
npm ERR! node v4.2.2
npm ERR! npm  v2.14.7
npm ERR! code ELIFECYCLE

npm ERR! node-sass@1.0.3 install: `node build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@1.0.3 install script 'node 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 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/arturogoicochea/npm-debug.log
choyan commented 8 years ago

Same problem on Ubuntu 14.04

artifactdev commented 8 years ago

Any news on this? Can't install on OS X El Capitan

patrikengborg commented 8 years ago

Same problem here. OS X 10.10.3 node v5.1.1 npm v3.3.12

Talv commented 8 years ago

This is most likely a problem with out of date node-sass package which is incompatible with newest npm versions - takana's dependency list is fairly old.. I suggest you to install takana from #89 as it has updated dependencies.

nc commented 8 years ago

Hey, Takana 0.5.2 has been released with updated nose-sass that fixes this.