leeluolee/puer

Fail to install on Mac

Rockergmail opened this issue · 0 comments

MacBook-Pro:mayike user$ sudo cnpm install -g puer
Downloading puer to /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer_tmp
Copying /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer_tmp/.1.1.1@puer to /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer
Installing puer's dependencies to /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules
[1/7] chokidar@0.8.1 installed at node_modules/.0.8.1@chokidar
[2/7] coffee-script@1.4.x installed at node_modules/.1.4.0@coffee-script
[3/7] qrcode-npm@0.0.3 installed at node_modules/.0.0.3@qrcode-npm
[4/7] http-proxy@~1.10.0 installed at node_modules/.1.10.1@http-proxy
[5/7] express@3.0.x installed at node_modules/.3.0.6@express
[6/7] weinre@^2.0.0-pre-I0Z7U9OV installed at node_modules/.2.0.0-pre-I0Z7U9OV@weinre
[7/7] socket.io@0.9.16 installed at node_modules/.0.9.16@socket.io
execute post install 2 scripts...
[1/2] scripts.postinstall chokidar@0.8.1 run "node setup-deps.js"
Executing npm install fsevents@0.1.6 recursive-readdir@0.0.2
npm http request GET https://registry.npm.taobao.org/recursive-readdir
npm http request GET https://registry.npm.taobao.org/fsevents
npm http 304 https://registry.npm.taobao.org/recursive-readdir
npm http 304 https://registry.npm.taobao.org/fsevents
gyp http GET https://npm.taobao.org/mirrors/node/v6.10.0/node-v6.10.0-headers.tar.gz
gyp http 200 https://npm.taobao.org/mirrors/node/v6.10.0/node-v6.10.0-headers.tar.gz
gyp http GET https://npm.taobao.org/mirrors/node/v6.10.0/SHASUMS256.txt
gyp http 200 https://npm.taobao.org/mirrors/node/v6.10.0/SHASUMS256.txt
../nodefsevents.cc:31:30: error: expected class name
  class NodeFSEvents : node::ObjectWrap {
                             ^
../nodefsevents.cc:66:51: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
      static v8::Handle<v8::Value> Shutdown(const v8::Arguments& args) {
                                                  ^~~~~~~~~~~~~
                                                  v8::internal::Arguments
/Users/user/.node-gyp/6.10.0/include/node/v8.h:147:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../nodefsevents.cc:72:46: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
      static v8::Handle<v8::Value> New(const v8::Arguments& args) {
                                             ^~~~~~~~~~~~~
                                             v8::internal::Arguments
/Users/user/.node-gyp/6.10.0/include/node/v8.h:147:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../nodefsevents.cc:34:21: error: calling a protected constructor of class 'v8::HandleScope'
        HandleScope scope;
                    ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:915:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../nodefsevents.cc:35:20: error: use of undeclared identifier 'NODE_PSYMBOL'
        emit_sym = NODE_PSYMBOL("emit");
                   ^
../nodefsevents.cc:36:22: error: use of undeclared identifier 'NODE_PSYMBOL'
        change_sym = NODE_PSYMBOL("fsevent");
                     ^
../nodefsevents.cc:37:37: error: no matching function for call to 'New'
        Local<FunctionTemplate> t = FunctionTemplate::New(NodeFSEvents::New);
                                    ^~~~~~~~~~~~~~~~~~~~~
/Users/user/.node-gyp/6.10.0/include/node/v8.h:4483:34: note: candidate function not viable: no known conversion from 'v8::Handle<v8::Value> (const v8::internal::Arguments &)' (aka 'v8::Local<v8::Value> (const v8::internal::Arguments &)') to 'v8::Isolate *' for 1st argument
  static Local<FunctionTemplate> New(
                                 ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:4487:34: note: candidate function not viable: requires 6 arguments, but 1 was provided
  static Local<FunctionTemplate> New(
                                 ^
../nodefsevents.cc:38:62: error: 'New' is a private member of 'v8::PersistentBase<v8::FunctionTemplate>'
        constructor_template = Persistent<FunctionTemplate>::New(t);
                                                             ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:669:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
../nodefsevents.cc:38:67: error: too few arguments to function call, expected 2, have 1
        constructor_template = Persistent<FunctionTemplate>::New(t);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:669:3: note: 'New' declared here
  V8_INLINE static T* New(Isolate* isolate, T* that);
  ^
/Users/user/.node-gyp/6.10.0/include/node/v8config.h:297:20: note: expanded from macro 'V8_INLINE'
# define V8_INLINE inline __attribute__((always_inline))
                   ^
../nodefsevents.cc:39:29: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; did you mean to use '.'?
        constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
        ~~~~~~~~~~~~~~~~~~~~^~
                            .
../nodefsevents.cc:39:31: error: no member named 'InstanceTemplate' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
        ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:40:29: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; did you mean to use '.'?
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
        ~~~~~~~~~~~~~~~~~~~~^~
                            .
../nodefsevents.cc:40:31: error: no member named 'SetClassName' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
        ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:40:52: error: no member named 'NewSymbol' in 'v8::String'
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
                                           ~~~~~~~~^
../nodefsevents.cc:41:59: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; did you mean to use '.'?
        Local<Function> constructor = constructor_template->GetFunction();
                                      ~~~~~~~~~~~~~~~~~~~~^~
                                                          .
../nodefsevents.cc:41:61: error: no member named 'GetFunction' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        Local<Function> constructor = constructor_template->GetFunction();
                                      ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:43:93: error: too few arguments to function call, expected 2, have 1
        constructor->Set(String::New("kFSEventStreamEventFlagNone"), Integer::New(0x00000000));
                                                                     ~~~~~~~~~~~~           ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:2558:3: note: 'New' declared here
  static Local<Integer> New(Isolate* isolate, int32_t value);
  ^
../nodefsevents.cc:43:34: error: no member named 'New' in 'v8::String'
        constructor->Set(String::New("kFSEventStreamEventFlagNone"), Integer::New(0x00000000));
                         ~~~~~~~~^
../nodefsevents.cc:44:104: error: too few arguments to function call, expected 2, have 1
        constructor->Set(String::New("kFSEventStreamEventFlagMustScanSubDirs"), Integer::New(0x00000001));
                                                                                ~~~~~~~~~~~~           ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:2558:3: note: 'New' declared here
  static Local<Integer> New(Isolate* isolate, int32_t value);
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fswatch/nodefsevents.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/Users/user/.nvm/versions/node/v6.10.0/bin/node" "/Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules/.0.8.1@chokidar/node_modules/fsevents
gyp ERR! node -v v6.10.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN chokidar@0.8.1 No license field.
npm ERR! Darwin 16.4.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.10.0/bin/node" "/Users/user/.nvm/versions/node/v6.10.0/bin/npm" "install" "fsevents@0.1.6" "recursive-readdir@0.0.2"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! fsevents@0.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fsevents@0.1.6 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fsevents package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fsevents
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fsevents
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules/.0.8.1@chokidar/npm-debug.log
[1/2] scripts.postinstall chokidar@0.8.1 finished in 5s
[2/2] scripts.install socket.io@0.9.16 › socket.io-client@0.9.16 › ws@0.4.32 run "(node-gyp rebuild 2> builderror.log) || (exit 0)"
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
[2/2] scripts.install socket.io@0.9.16 › socket.io-client@0.9.16 › ws@0.4.32 finished in 1s
All packages installed (50 packages installed from npm registry, used 15s, speed 468.65kB/s, json 56(397.11kB), tarball 6.36MB)
Recently updated (since 2017-03-08): 1 packages (detail see file /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules/.recently_updates.txt)
  2017-03-14
    → express@3.0.6 › debug@2.6.3 (11:50:34)
[puer@1.1.1] link /Users/user/.nvm/versions/node/v6.10.0/bin/puer@ -> /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/bin/puerMacBook-Pro:mayike user$ sudo cnpm install -g puer
Downloading puer to /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer_tmp
Copying /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer_tmp/.1.1.1@puer to /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer
Installing puer's dependencies to /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules
[1/7] chokidar@0.8.1 installed at node_modules/.0.8.1@chokidar
[2/7] coffee-script@1.4.x installed at node_modules/.1.4.0@coffee-script
[3/7] qrcode-npm@0.0.3 installed at node_modules/.0.0.3@qrcode-npm
[4/7] http-proxy@~1.10.0 installed at node_modules/.1.10.1@http-proxy
[5/7] express@3.0.x installed at node_modules/.3.0.6@express
[6/7] weinre@^2.0.0-pre-I0Z7U9OV installed at node_modules/.2.0.0-pre-I0Z7U9OV@weinre
[7/7] socket.io@0.9.16 installed at node_modules/.0.9.16@socket.io
execute post install 2 scripts...
[1/2] scripts.postinstall chokidar@0.8.1 run "node setup-deps.js"
Executing npm install fsevents@0.1.6 recursive-readdir@0.0.2
npm http request GET https://registry.npm.taobao.org/recursive-readdir
npm http request GET https://registry.npm.taobao.org/fsevents
npm http 304 https://registry.npm.taobao.org/recursive-readdir
npm http 304 https://registry.npm.taobao.org/fsevents
gyp http GET https://npm.taobao.org/mirrors/node/v6.10.0/node-v6.10.0-headers.tar.gz
gyp http 200 https://npm.taobao.org/mirrors/node/v6.10.0/node-v6.10.0-headers.tar.gz
gyp http GET https://npm.taobao.org/mirrors/node/v6.10.0/SHASUMS256.txt
gyp http 200 https://npm.taobao.org/mirrors/node/v6.10.0/SHASUMS256.txt
../nodefsevents.cc:31:30: error: expected class name
  class NodeFSEvents : node::ObjectWrap {
                             ^
../nodefsevents.cc:66:51: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
      static v8::Handle<v8::Value> Shutdown(const v8::Arguments& args) {
                                                  ^~~~~~~~~~~~~
                                                  v8::internal::Arguments
/Users/user/.node-gyp/6.10.0/include/node/v8.h:147:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../nodefsevents.cc:72:46: error: no type named 'Arguments' in namespace 'v8'; did you mean 'v8::internal::Arguments'?
      static v8::Handle<v8::Value> New(const v8::Arguments& args) {
                                             ^~~~~~~~~~~~~
                                             v8::internal::Arguments
/Users/user/.node-gyp/6.10.0/include/node/v8.h:147:7: note: 'v8::internal::Arguments' declared here
class Arguments;
      ^
../nodefsevents.cc:34:21: error: calling a protected constructor of class 'v8::HandleScope'
        HandleScope scope;
                    ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:915:13: note: declared protected here
  V8_INLINE HandleScope() {}
            ^
../nodefsevents.cc:35:20: error: use of undeclared identifier 'NODE_PSYMBOL'
        emit_sym = NODE_PSYMBOL("emit");
                   ^
../nodefsevents.cc:36:22: error: use of undeclared identifier 'NODE_PSYMBOL'
        change_sym = NODE_PSYMBOL("fsevent");
                     ^
../nodefsevents.cc:37:37: error: no matching function for call to 'New'
        Local<FunctionTemplate> t = FunctionTemplate::New(NodeFSEvents::New);
                                    ^~~~~~~~~~~~~~~~~~~~~
/Users/user/.node-gyp/6.10.0/include/node/v8.h:4483:34: note: candidate function not viable: no known conversion from 'v8::Handle<v8::Value> (const v8::internal::Arguments &)' (aka 'v8::Local<v8::Value> (const v8::internal::Arguments &)') to 'v8::Isolate *' for 1st argument
  static Local<FunctionTemplate> New(
                                 ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:4487:34: note: candidate function not viable: requires 6 arguments, but 1 was provided
  static Local<FunctionTemplate> New(
                                 ^
../nodefsevents.cc:38:62: error: 'New' is a private member of 'v8::PersistentBase<v8::FunctionTemplate>'
        constructor_template = Persistent<FunctionTemplate>::New(t);
                                                             ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:669:23: note: declared private here
  V8_INLINE static T* New(Isolate* isolate, T* that);
                      ^
../nodefsevents.cc:38:67: error: too few arguments to function call, expected 2, have 1
        constructor_template = Persistent<FunctionTemplate>::New(t);
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:669:3: note: 'New' declared here
  V8_INLINE static T* New(Isolate* isolate, T* that);
  ^
/Users/user/.node-gyp/6.10.0/include/node/v8config.h:297:20: note: expanded from macro 'V8_INLINE'
# define V8_INLINE inline __attribute__((always_inline))
                   ^
../nodefsevents.cc:39:29: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; did you mean to use '.'?
        constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
        ~~~~~~~~~~~~~~~~~~~~^~
                            .
../nodefsevents.cc:39:31: error: no member named 'InstanceTemplate' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        constructor_template->InstanceTemplate()->SetInternalFieldCount(1);
        ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:40:29: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; did you mean to use '.'?
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
        ~~~~~~~~~~~~~~~~~~~~^~
                            .
../nodefsevents.cc:40:31: error: no member named 'SetClassName' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
        ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:40:52: error: no member named 'NewSymbol' in 'v8::String'
        constructor_template->SetClassName(String::NewSymbol("FSEvents"));
                                           ~~~~~~~~^
../nodefsevents.cc:41:59: error: member reference type 'v8::Persistent<v8::FunctionTemplate>' is not a pointer; did you mean to use '.'?
        Local<Function> constructor = constructor_template->GetFunction();
                                      ~~~~~~~~~~~~~~~~~~~~^~
                                                          .
../nodefsevents.cc:41:61: error: no member named 'GetFunction' in 'v8::Persistent<v8::FunctionTemplate, v8::NonCopyablePersistentTraits<v8::FunctionTemplate> >'
        Local<Function> constructor = constructor_template->GetFunction();
                                      ~~~~~~~~~~~~~~~~~~~~  ^
../nodefsevents.cc:43:93: error: too few arguments to function call, expected 2, have 1
        constructor->Set(String::New("kFSEventStreamEventFlagNone"), Integer::New(0x00000000));
                                                                     ~~~~~~~~~~~~           ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:2558:3: note: 'New' declared here
  static Local<Integer> New(Isolate* isolate, int32_t value);
  ^
../nodefsevents.cc:43:34: error: no member named 'New' in 'v8::String'
        constructor->Set(String::New("kFSEventStreamEventFlagNone"), Integer::New(0x00000000));
                         ~~~~~~~~^
../nodefsevents.cc:44:104: error: too few arguments to function call, expected 2, have 1
        constructor->Set(String::New("kFSEventStreamEventFlagMustScanSubDirs"), Integer::New(0x00000001));
                                                                                ~~~~~~~~~~~~           ^
/Users/user/.node-gyp/6.10.0/include/node/v8.h:2558:3: note: 'New' declared here
  static Local<Integer> New(Isolate* isolate, int32_t value);
  ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fswatch/nodefsevents.o] Error 1
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:106:13)
gyp ERR! stack     at ChildProcess.emit (events.js:191:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
gyp ERR! System Darwin 16.4.0
gyp ERR! command "/Users/user/.nvm/versions/node/v6.10.0/bin/node" "/Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules/.0.8.1@chokidar/node_modules/fsevents
gyp ERR! node -v v6.10.0
gyp ERR! node-gyp -v v3.4.0
gyp ERR! not ok 
npm WARN chokidar@0.8.1 No license field.
npm ERR! Darwin 16.4.0
npm ERR! argv "/Users/user/.nvm/versions/node/v6.10.0/bin/node" "/Users/user/.nvm/versions/node/v6.10.0/bin/npm" "install" "fsevents@0.1.6" "recursive-readdir@0.0.2"
npm ERR! node v6.10.0
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE

npm ERR! fsevents@0.1.6 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the fsevents@0.1.6 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the fsevents package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs fsevents
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls fsevents
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules/.0.8.1@chokidar/npm-debug.log
[1/2] scripts.postinstall chokidar@0.8.1 finished in 5s
[2/2] scripts.install socket.io@0.9.16 › socket.io-client@0.9.16 › ws@0.4.32 run "(node-gyp rebuild 2> builderror.log) || (exit 0)"
  CXX(target) Release/obj.target/bufferutil/src/bufferutil.o
[2/2] scripts.install socket.io@0.9.16 › socket.io-client@0.9.16 › ws@0.4.32 finished in 1s
All packages installed (50 packages installed from npm registry, used 15s, speed 468.65kB/s, json 56(397.11kB), tarball 6.36MB)
Recently updated (since 2017-03-08): 1 packages (detail see file /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/node_modules/.recently_updates.txt)
  2017-03-14
    → express@3.0.6 › debug@2.6.3 (11:50:34)
[puer@1.1.1] link /Users/user/.nvm/versions/node/v6.10.0/bin/puer@ -> /Users/user/.nvm/versions/node/v6.10.0/lib/node_modules/puer/bin/puer