Quantcast
Channel: CNode:Node.js专业中文社区
Viewing all articles
Browse latest Browse all 14821

npm install multer错误

$
0
0

npm install multer报错,不明原因? 1.png

magickwand@0.0.11 install /Users/liuguangkuo/Documents/www/sportq-platform-tools/webapps/tools/node_modules/magickwand node-gyp rebuild

CXX(target) Release/obj.target/magickwand/src/module.o …/src/module.cpp:4:16: error: use of undeclared identifier 'NanNew’ exports->Set(NanNew<String>(“resize”), ^ …/src/module.cpp:4:23: error: ‘String’ does not refer to a value exports->Set(NanNew<String>(“resize”), ^ /Users/liuguangkuo/.node-gyp/5.9.0/include/node/v8.h:2078:17: note: declared here class V8_EXPORT String : public Name { ^ …/src/module.cpp:5:7: error: use of undeclared identifier 'NanNew’ NanNew<FunctionTemplate>(resizeAsync)->GetFunction()); ^ …/src/module.cpp:5:14: error: ‘FunctionTemplate’ does not refer to a value NanNew<FunctionTemplate>(resizeAsync)->GetFunction()); ^ /Users/liuguangkuo/.node-gyp/5.9.0/include/node/v8.h:4345:17: note: declared here class V8_EXPORT FunctionTemplate : public Template { ^ …/src/module.cpp:5:44: error: member reference base type ‘Nan::NAN_METHOD_RETURN_TYPE (Nan::NAN_METHOD_ARGS_TYPE)’ (aka ‘void (const FunctionCallbackInfov8::Value&)’) is not a structure or union NanNew<FunctionTemplate>(resizeAsync)->GetFunction()); ~~~~~~~~~~~~~^ ~~~~~~~~~~~ …/src/module.cpp:7:16: error: use of undeclared identifier 'NanNew’ exports->Set(NanNew<String>(“thumbnail”), ^ …/src/module.cpp:7:23: error: ‘String’ does not refer to a value exports->Set(NanNew<String>(“thumbnail”), ^ /Users/liuguangkuo/.node-gyp/5.9.0/include/node/v8.h:2078:17: note: declared here class V8_EXPORT String : public Name { ^ …/src/module.cpp:8:7: error: use of undeclared identifier 'NanNew’ NanNew<FunctionTemplate>(thumbnailAsync)->GetFunction()); ^ …/src/module.cpp:8:14: error: ‘FunctionTemplate’ does not refer to a value NanNew<FunctionTemplate>(thumbnailAsync)->GetFunction()); ^ /Users/liuguangkuo/.node-gyp/5.9.0/include/node/v8.h:4345:17: note: declared here class V8_EXPORT FunctionTemplate : public Template { ^ …/src/module.cpp:8:47: error: member reference base type ‘Nan::NAN_METHOD_RETURN_TYPE (Nan::NAN_METHOD_ARGS_TYPE)’ (aka ‘void (const FunctionCallbackInfov8::Value&)’) is not a structure or union NanNew<FunctionTemplate>(thumbnailAsync)->GetFunction()); ~~~~~~~~~~~~~~~~^ ~~~~~~~~~~~ 10 errors generated. make: *** [Release/obj.target/magickwand/src/module.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:100:13) gyp ERR! stack at ChildProcess.emit (events.js:185:7) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12) gyp ERR! System Darwin 15.2.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/liuguangkuo/Documents/www/sportq-platform-tools/webapps/tools/node_modules/magickwand gyp ERR! node -v v5.9.0 gyp ERR! node-gyp -v v3.2.1 gyp ERR! not ok npm WARN install:magickwand@0.0.11 magickwand@0.0.11 install: node-gyp rebuild npm WARN install:magickwand@0.0.11 Exit status 1 npm WARN saveError Unexpected token } /Users/liuguangkuo/Documents/www/sportq-platform-tools/webapps/tools └── formidable@1.0.17

npm WARN Failed to parse json npm WARN Trailing comma in object at 20:3 npm WARN } npm WARN ^ npm WARN File: /Users/liuguangkuo/Documents/www/sportq-platform-tools/webapps/tools/package.json npm WARN tools No description npm WARN tools No repository field. npm WARN tools No README data npm WARN tools No license field.


Viewing all articles
Browse latest Browse all 14821

Trending Articles