我已經忽略了這些幾個星期了,他們似乎堆積如山。我的節點應用程序和一切工作正常,但只是當我運行npm安裝任何節點包它傾向於打印這些。我已經嘗試了一個節點更新和緩存清理,但是每當我安裝一個新軟件包時似乎都沒有刪除這些錯誤。這裏沒有什麼令人興奮的,很多重複,但完整的輸出在這裏:http://paste.ofcode.org/Kvue8nB6pCVJyRmA3rds7h奇怪的良性Node.JS錯誤/警告當我安裝
我該如何刪除這些錯誤?
下面是摘錄:
> [email protected] install /Users/natumyers/Desktop/mine/A.M.E.N.SQL-Stack/node_modules/chokidar/node_modules/fsevents
> node-gyp rebuild
CXX(target) Release/obj.target/fse/fsevents.o
In file included from ../fsevents.cc:6:
../../nan/nan.h:339:13: error: no member named 'New' in 'v8::String'
return _NAN_ERROR(v8::Exception::Error, errmsg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:319:50: note: expanded from macro '_NAN_ERROR'
# define _NAN_ERROR(fun, errmsg) fun(v8::String::New(errmsg))
~~~~~~~~~~~~^
../../nan/nan.h:343:5: error: no member named 'ThrowException' in namespace 'v8'
_NAN_THROW_ERROR(v8::Exception::Error, errmsg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:11: note: expanded from macro '_NAN_THROW_ERROR'
v8::ThrowException(_NAN_ERROR(fun, errmsg)); \
~~~~^
../../nan/nan.h:343:5: error: no member named 'New' in 'v8::String'
_NAN_THROW_ERROR(v8::Exception::Error, errmsg);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../nan/nan.h:324:26: note: expanded from macro '_NAN_THROW_ERROR'
v8::ThrowException(_NAN_ERROR(fun, errmsg));
諸如此類,並繼續說:
^
/Users/natumyers/.node-gyp/5.2.0/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 2 were provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:420:12: error: no matching function for call to 'New'
return node::Buffer::New(size);
^~~~~~~~~~~~~~~~~
/Users/natumyers/.node-gyp/5.2.0/include/node/node_buffer.h:28:40: note: candidate function not viable: requires 2 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate, size_t length);
^
/Users/natumyers/.node-gyp/5.2.0/include/node/node_buffer.h:31:40: note: candidate function not viable: requires at least 2 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/natumyers/.node-gyp/5.2.0/include/node/node_buffer.h:43:40: note: candidate function not viable: requires 3 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
/Users/natumyers/.node-gyp/5.2.0/include/node/node_buffer.h:36:40: note: candidate function not viable: requires 5 arguments, but 1 was provided
NODE_EXTERN v8::MaybeLocal<v8::Object> New(v8::Isolate* isolate,
^
In file included from ../fsevents.cc:6:
../../nan/nan.h:427:26: error: no member named 'Use' in namespace 'node::Buffer'
return node::Buffer::Use(data, size);
~~~~~~~~~~~~~~^
../../nan/nan.h:727:49: error: too few arguments to function call, single argument 'isolate' was not specified
v8::Local<v8::Object> obj = v8::Object::New();
~~~~~~~~~~~~~~~^
/Users/natumyers/.node-gyp/5.2.0/include/node/v8.h:2930:3: note: 'New' declared here
static Local<Object> New(Isolate* isolate);
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [Release/obj.target/fse/fsevents.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:88:13)
gyp ERR! stack at ChildProcess.emit (events.js:173:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12)
gyp ERR! System Darwin 15.3.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/natumyers/Desktop/mine/A.M.E.N.SQL-Stack/node_modules/chokidar/node_modules/fsevents
gyp ERR! node -v v5.2.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:[email protected] [email protected] install: `node-gyp rebuild`
npm WARN install:[email protected] Exit status 1
[email protected] /Users/natumyers/Desktop/mine/A.M.E.N.SQL-Stack
├── UNMET PEER DEPENDENCY [email protected]~0.1.0
├── UNMET PEER DEPENDENCY [email protected]~0.1.0
├── UNMET PEER DEPENDENCY [email protected]~0.1.0
├── UNMET PEER DEPENDENCY [email protected]~0.1.0
├── UNMET PEER DEPENDENCY [email protected]~0.1.0
├── UNMET PEER DEPENDENCY [email protected]~0.2.0
├── UNMET PEER DEPENDENCY [email protected]~0.1.0
└── [email protected]
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.1.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.1.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.1.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.1.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.1.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.2.0 but none was installed.
npm WARN EPEERINVALID [email protected] requires a peer of [email protected]~0.1.0 but none was installed.
npm WARN EPACKAGEJSON rt[email protected] No repository field.
npm WARN EPACKAGEJSON [email protected] No license field.
~~~
[Npm install not working。可能重複[Npm install not working。 PC和Mac上的同樣錯誤](http://stackoverflow.com/questions/33864718/npm-install-not-working-same-error-on-pc-and-mac) – kenorb