Phantomjs 运行'时出现数百个错误;sudoyomeans';

Phantomjs 运行'时出现数百个错误;sudoyomeans';,phantomjs,yeoman,mean-stack,meanjs,Phantomjs,Yeoman,Mean Stack,Meanjs,我正在尝试完成以下教程: 教我的自我均值堆栈开发。据我所知,所有的软件包似乎都安装正确 当我运行“sudoyomeans”时,我收到了超过500行的错误和警告(超过了我在这里的帖子所能写的)。下面是第一批大约100个,希望有人能看到这种模式,并为我指出正确的方向 不确定这是否相关,但“sudo yo meanjs”可能需要10到15分钟才能返回这些错误 非常感谢 Error: Command failed: /bin/sh -c cd mean && npm install np

我正在尝试完成以下教程: 教我的自我均值堆栈开发。据我所知,所有的软件包似乎都安装正确

当我运行“sudoyomeans”时,我收到了超过500行的错误和警告(超过了我在这里的帖子所能写的)。下面是第一批大约100个,希望有人能看到这种模式,并为我指出正确的方向

不确定这是否相关,但“sudo yo meanjs”可能需要10到15分钟才能返回这些错误

非常感谢

Error: Command failed: /bin/sh -c cd mean && npm install
npm WARN deprecated phantomjs@2.1.3: Package renamed to phantomjs-prebuilt. Please update 'phantomjs' package references to 'phantomjs-prebuilt'
npm WARN deprecated lodash@0.9.2: Grunt needs your help! See https://github.com/gruntjs/grunt/issues/1403.
npm WARN deprecated graceful-fs@1.2.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated graceful-fs@2.0.3: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated graceful-fs@3.0.8: graceful-fs version 3 and before will fail on newer node releases. Please update to graceful-fs@^4.0.0 as soon as possible.
npm WARN deprecated lodash@1.0.2: lodash@<3.0.0 is no longer maintained. Upgrade to lodash@^4.0.0.
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
npm WARN prefer global jshint@2.8.0 should be installed with -g
npm WARN prefer global nodemon@1.9.0 should be installed with -g
npm WARN prefer global node-gyp@3.3.0 should be installed with -g
npm WARN prefer global node-inspector@0.10.2 should be installed with -g
In file included from ../src/bufferutil.cc:16:
../../nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../../nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../../nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../../nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/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::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/christopherward/.node-gyp/4.3.1/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/christopherward/.node-gyp/4.3.1/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/christopherward/.node-gyp/4.3.1/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/bufferutil.cc:16:
../../nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
class Local {
      ^
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/bufferutil.cc:16:
../../nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
In file included from ../src/bufferutil.cc:7:
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../../nan/nan.h:414:12: note: in instantiation of function template specialization 'v8::Local<v8::Primitive>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::Undefined(v8::Isolate::GetCurrent())));
           ^
../../nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/bufferutil.cc:7:
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:221:5: error: assigning to 'v8::Boolean *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../../nan/nan.h:424:12: note: in instantiation of function template specialization 'v8::Local<v8::Boolean>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(v8::True(v8::Isolate::GetCurrent())));
           ^
../../nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/bufferutil.cc:7:
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:221:5: error: assigning to 'v8::Function *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../../nan/nan.h:1514:12: note: in instantiation of function template specialization 'v8::Local<v8::Function>::Local<v8::Value>' requested here
    return NanEscapeScope(NanNew(handle)->Get(kCallbackIndex)
           ^
../../nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
In file included from ../src/bufferutil.cc:7:
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:221:5: error: assigning to 'v8::Object *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:180:37: note: expanded from macro 'TYPE_CHECK'
    *(static_cast<T* volatile*>(0)) = static_cast<S*>(0);      \
                                    ^ ~~~~~~~~~~~~~~~~~~
../../nan/nan.h:1632:12: note: in instantiation of function template specialization 'v8::Local<v8::Object>::Local<v8::Value>' requested here
    return NanEscapeScope(handle->Get(NanNew(key)).As<v8::Object>());
           ^
../../nan/nan.h:398:30: note: expanded from macro 'NanEscapeScope'
# define NanEscapeScope(val) scope.Escape(_NanEnsureLocal(val))
                             ^
9 errors generated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.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:276: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.5.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 /Users/christopherward/MeanStackTutorial/NorthwindNode/mean/node_modules/bufferutil
gyp ERR! node -v v4.3.1
gyp ERR! node-gyp -v v3.2.1
gyp ERR! not ok 
npm WARN install:bufferutil@1.1.0 bufferutil@1.1.0 install: `node-gyp rebuild`
npm WARN install:bufferutil@1.1.0 Exit status 1
./Release/.deps/Release/obj.target/bufferutil/src/bufferutil.o.d.raw { dev: 16777218,
  mode: 33188,
  nlink: 1,
  uid: 501,
  gid: 20,
  rdev: 0,
  blksize: 4096,
  ino: 19122429,
  size: 1318,
  blocks: 8,
  atime: Tue Feb 23 2016 12:32:42 GMT-0800 (PST),
  mtime: Tue Feb 23 2016 12:32:42 GMT-0800 (PST),
  ctime: Tue Feb 23 2016 12:32:42 GMT-0800 (PST),
  birthtime: Tue Feb 23 2016 12:32:42 GMT-0800 (PST) }
./Release/.deps/Release/obj.target/validation/src/validation.o.d.raw { dev: 16777218,
  mode: 33188,
  nlink: 1,
  uid: 501,
  gid: 20,
  rdev: 0,
  blksize: 4096,
  ino: 19122463,
  size: 1318,
  blocks: 8,
  atime: Tue Feb 23 2016 12:32:51 GMT-0800 (PST),
  mtime: Tue Feb 23 2016 12:32:51 GMT-0800 (PST),
  ctime: Tue Feb 23 2016 12:32:51 GMT-0800 (PST),
  birthtime: Tue Feb 23 2016 12:32:51 GMT-0800 (PST) }
In file included from ../src/validation.cc:15:
../../nan/nan.h:261:25: error: redefinition of '_NanEnsureLocal'
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Local<T> val) {
                        ^
../../nan/nan.h:256:25: note: previous definition is here
NAN_INLINE v8::Local<T> _NanEnsureLocal(v8::Handle<T> val) {
                        ^
../../nan/nan.h:661:13: error: no member named 'smalloc' in namespace 'node'
    , node::smalloc::FreeCallback callback
      ~~~~~~^
../../nan/nan.h:672:12: error: no matching function for call to 'New'
    return node::Buffer::New(v8::Isolate::GetCurrent(), data, size);
           ^~~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/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::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/christopherward/.node-gyp/4.3.1/include/node/node_buffer.h:43:40: note: candidate function not viable: 2nd argument ('const char *') would lose const qualifier
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
/Users/christopherward/.node-gyp/4.3.1/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
                                       ^
/Users/christopherward/.node-gyp/4.3.1/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 3 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
                                       ^
In file included from ../src/validation.cc:15:
../../nan/nan.h:676:12: error: no viable conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object>'
    return node::Buffer::New(v8::Isolate::GetCurrent(), size);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:210:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'const v8::Local<v8::Object> &' for 1st argument
class Local {
      ^
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:210:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::MaybeLocal<v8::Object>' to 'v8::Local<v8::Object> &&' for 1st argument
class Local {
      ^
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:214:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
  V8_INLINE Local(Local<S> that)
            ^
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:326:13: note: candidate template ignored: could not match 'S *' against 'v8::MaybeLocal<v8::Object>'
  V8_INLINE Local(S* that)
            ^
In file included from ../src/validation.cc:15:
../../nan/nan.h:683:26: error: no member named 'Use' in namespace 'node::Buffer'
    return node::Buffer::Use(v8::Isolate::GetCurrent(), data, size);
           ~~~~~~~~~~~~~~^
In file included from ../src/validation.cc:7:
/Users/christopherward/.node-gyp/4.3.1/include/node/v8.h:221:5: error: assigning to 'v8::Primitive *volatile' from incompatible type 'v8::Value *'
    TYPE_CHECK(T, S);
    ^~~~~~~~~~~~~~~~
错误:命令失败:/bin/sh-c cd-mean&&npm安装
npm警告已弃用phantomjs@2.1.3:包重命名为phantomjs预构建。请将“phantomjs”包引用更新为“phantomjs预构建”
npm警告已弃用lodash@0.9.2:格伦特需要你的帮助!看见https://github.com/gruntjs/grunt/issues/1403.
npm警告已弃用-fs@1.2.3:fs版本3及之前的版本将在较新的节点版本上失败。请尽快更新到优雅的fs@^4.0.0。
npm警告已弃用-fs@2.0.3:fs版本3及之前的版本将在较新的节点版本上失败。请尽快更新到优雅的fs@^4.0.0。
npm警告已弃用-fs@3.0.8:fs版本3及之前的版本将在较新的节点版本上失败。请尽快更新到优雅的fs@^4.0.0。
npm警告已弃用lodash@1.0.2: lodash@Get(kCallbackIndex)
^
..//nan/nan.h:398:30:注意:从宏“NanEscapeScope”展开
#定义NanEscapeScope(val)作用域。Escape(_NanEnsureLocal(val))
^
在../src/bufferutil.cc:7中包含的文件中:
/Users/christoward/.node gyp/4.3.1/include/node/v8.h:221:5:错误:从不兼容的类型“v8::Value*”分配给“v8::Object*volatile”
类型检查(T,S);
^~~~~~~~~~~~~~~~
/Users/christoward/.node gyp/4.3.1/include/node/v8.h:180:37:注意:从宏“TYPE_CHECK”展开
*(静态_cast(0))=静态_cast(0)\
^ ~~~~~~~~~~~~~~~~~~
../../nan/nan.h:1632:12:注意:在函数模板专门化的实例化中,此处请求了“v8::Local::Local”
返回NanEscapeScope(handle->Get(NanNew(key)).As();
^
..//nan/nan.h:398:30:注意:从宏“NanEscapeScope”展开
#定义NanEscapeScope(val)作用域。Escape(_NanEnsureLocal(val))
^
产生了9个错误。
make:**[Release/obj.target/bufferutil/src/bufferutil.o]错误1
哎呀!构建错误
哎呀!堆栈错误:`make`失败,退出代码:2
哎呀!堆栈位于ChildProcess.onExit(/usr/local/lib/node_modules/npm/node_modules/node gyp/lib/build.js:276:23)
哎呀!在emitTwo处堆栈(events.js:87:13)
哎呀!ChildProcess.emit处的堆栈(events.js:172:7)
哎呀!在Process.ChildProcess.\u handle.onexit(internal/child\u Process.js:200:12)处堆栈
哎呀!达尔文系统14.5.0
哎呀!命令“/usr/local/bin/node”“/usr/local/lib/node_modules/npm/node_modules/node gyp/bin/node gyp.js”“重建”
哎呀!cwd/Users/christopherward/MeanStackTutorial/NorthwindNode/mean/node_模块/bufferutil
哎呀!节点-v4.3.1
哎呀!节点gyp-v3.2.1
哎呀!不好
npm警告安装:bufferutil@1.1.0 bufferutil@1.1.0安装:`node gyp rebuild`
npm警告安装:bufferutil@1.1.0退出状态1
./Release/.deps/Release/obj.target/bufferutil/src/bufferutil.o.d.raw{dev:16777218,
模式:33188,
nlink:1,
uid:501,
基德:20,
rdev:0,
blksize:4096,
伊诺:19122429,
尺码:1318,
街区:8,
时间:2016年2月23日星期二12:32:42 GMT-0800(太平洋标准时间),
时间:2016年2月23日星期二12:32:42 GMT-0800(太平洋标准时间),
时间:2016年2月23日星期二12:32:42 GMT-0800(太平洋标准时间),
出生时间:2016年2月23日星期二12:32:42 GMT-0800(太平洋标准时间)}
./Release/.deps/Release/obj.target/validation/src/validation.o.d.raw{dev:16777218,
模式:33188,
nlink:1,
uid:501,
基德:20,
rdev:0,
blksize:4096,
伊诺:19122463,
尺码:1318,
街区:8,
时间:2016年2月23日星期二12:32:51 GMT-0800(太平洋标准时间),
时间:2016年2月23日星期二12:32:51 GMT-0800(太平洋标准时间),
时间:2016年2月23日星期二12:32:51 GMT-0800(太平洋标准时间),
出生时间:2016年2月23日星期二12:32:51 GMT-0800(太平洋标准时间)}
在../src/validation.cc:15中包含的文件中:
../../nan/nan.h:261:25:错误:重新定义“\u NanEnsureLocal”
NAN_内联v8::Local _NansureLocal(v8::Local val){
^
../../nan/nan.h:256:25:注意:前面的定义在这里
NAN_内联v8::Local _NansureLocal(v8::Handle val){
^
../../nan/nan.h:661:13:错误:命名空间“node”中没有名为“smalloc”的成员
,node::smalloc::FreeCallback回调
~~~~~~^
../../nan/nan.h:672:12:错误:没有用于调用“New”的匹配函数
返回节点::缓冲区::新建(v8::隔离::GetCurrent(),数据,大小);
^~~~~~~~~~~~~~~~~
/Users/christorward/.node gyp/4.3.1/include/node/node_buffer.h:31:40:注意:候选函数不可行:第三个参数的“uint32_t”(又名“unsigned int”)到“enum encoding”的转换未知
节点外部v8::MaybeLocal新建(v8::隔离*隔离,
^
/Users/christorward/.node gyp/4.3.1/include/node/node_buffer.h:43:40:注意:候选函数不可行:第二个参数('const char*')将丢失常量限定符
节点外部v8::MaybeLocal新建(v8::隔离*隔离,
^
/Users/christoward/.node gyp/4.3.1/include/node/node_buffer.h:28:40:注意:候选函数不可行:需要2个参数,但提供了3个
节点外部v8::MaybeLocal新建(v8::隔离*隔离,大小\u t长度);
^
/Users/christoward/.node gyp/4.3.1/include/node/node_buffer.h:36:40:注意:候选函数不可行:需要5个参数,但提供了3个
节点外部v8::MaybeLocal新建(v8::隔离*隔离,
^
在../src/validation.cc:15中包含的文件中:
../../nan/nan.h:676:12:错误: