0

我正在使用快速入门指南进行生产。

我已经用 grunt 解决了一个问题,但现在我得到了另一个我无法解决的问题,就是这样:

../src/create_string.cpp:17:37: error: no matching function for call to ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>&)’
   v8::String::Utf8Value string(value);
                                     ^
In file included from /home/jaime/.node-gyp/14.16.0/include/node/node.h:67:0,
                 from ../../nan/nan.h:56,
                 from ../src/create_string.cpp:1:
/home/jaime/.node-gyp/14.16.0/include/node/v8.h:3287:5: note: candidate: v8::String::Utf8Value::Utf8Value(v8::Isolate*, v8::Local<v8::Value>)
     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
     ^
/home/jaime/.node-gyp/14.16.0/include/node/v8.h:3287:5: note:   candidate expects 2 arguments, 1 provided
binding.target.mk:131: fallo en las instrucciones para el objetivo 'Release/obj.target/binding/src/create_string.o'
make: *** [Release/obj.target/binding/src/create_string.o] Error 1
make: se sale del directorio '/var/www/fbctf/node_modules/node-sass/build'
gyp ERR! build error 
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/var/www/fbctf/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:315:20)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:277:12)
gyp ERR! System Linux 4.15.0-136-generic
gyp ERR! command "/usr/local/bin/node" "/var/www/fbctf/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /var/www/fbctf/node_modules/node-sass
gyp ERR! node -v v14.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
Build failed with error code: 1
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@3.13.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@3.13.1 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
4

0 回答 0