Hi Team,

When i am trying to build the Sparky-fe (master) code (npm install), then i
am getting the below error.

Environment is,
1. OS: Ubuntu - 16.04
2. node version - v12.1.0
3. npm version - 6.9.0
4. python version - Python 2.7.13

*Error:*

 g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1'
'-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-DV8_D
                             EPRECATION_WARNINGS'
'-DV8_IMMINENT_DEPRECATION_WARNINGS' '-D_LARGEFILE_SOURCE'
'-D_FILE_OFFSET_BITS=64' '-DOPENSSL_THRE
         ADS' '-DBUILDING_NODE_EXTENSION'
-I/home/ubuntu/.node-gyp/12.1.0/include/node
-I/home/ubuntu/.node-gyp/12.1.0/src -I/hom
           e/ubuntu/.node-gyp/12.1.0/deps/openssl/config
-I/home/ubuntu/.node-gyp/12.1.0/deps/openssl/openssl/include -I/home/ubunt

 u/.node-gyp/12.1.0/deps/uv/include
-I/home/ubuntu/.node-gyp/12.1.0/deps/zlib
-I/home/ubuntu/.node-gyp/12.1.0/deps/v8/inc
             lude -I../../../../nan -I../src/libsass/include  -fPIC
-pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-f
                                   rame-pointer -fno-rtti -fno-exceptions
-std=gnu++1y -std=c++0x -MMD -MF
./Release/.deps/Release/obj.target/binding/src/c
                 reate_string.o.d.raw   -c -o
Release/obj.target/binding/src/create_string.o ../src/create_string.cpp
../src/create_string.cpp: In function ‘char*
create_string(Nan::MaybeLocal<v8::Value>)’:
../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/ubuntu/.node-gyp/12.1.0/include/node/node.h:63:0,
                 from ../../../../nan/nan.h:53,
                 from ../src/create_string.cpp:1:
/home/ubuntu/.node-gyp/12.1.0/include/node/v8.h:2995:5: note: candidate:
v8::String::Utf8Value::Utf8Value(v8::Isolate*,
                v8::Local<v8::Value>)
     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
     ^
/home/ubuntu/.node-gyp/12.1.0/include/node/v8.h:2995:5: note:   candidate
expects 2 arguments, 1 provided
binding.target.mk:127: recipe for target
'Release/obj.target/binding/src/create_string.o' failed
make: *** [Release/obj.target/binding/src/create_string.o] Error 1
make: Leaving directory
'/home/ubuntu/sparky-fe/node_modules/gulp-helpers/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
(/home/ubuntu/sparky-fe/node_modules/node-gyp/lib/build.js:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:196:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit
(internal/child_process.js:256:12)
gyp ERR! System Linux 4.4.0-81-generic
gyp ERR! command "/usr/bin/node"
"/home/ubuntu/sparky-fe/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
"--verbose" "-                                             -libsass_ext="
"--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd
/home/ubuntu/sparky-fe/node_modules/gulp-helpers/node_modules/node-sass
gyp ERR! node -v v12.1.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm WARN [email protected] requires a peer of react@^0.14.3 ||
^15.0.0 but none is installed. You must install pe
                   er dependencies yourself.
npm WARN [email protected] requires a peer of react-dom@^0.14.3 ||
^15.0.0 but none is installed. You must instal
               l peer dependencies yourself.
npm WARN [email protected] requires a peer of react@^15.0.0 but none is
installed. You must install peer dependencies you
                   rself.
npm WARN [email protected] requires a peer of react-dom@^15.4.2
but none is installed. You must install pee
             r dependencies yourself.
npm WARN [email protected] requires a peer of node-sass@^3.4.2 but none is
installed. You must install peer dependencies
                yourself.
npm WARN [email protected] requires a peer of [email protected] but none is
installed. You must install peer dependencies yours
                     elf.
npm WARN [email protected] requires a peer of jasmine-core@* but none is
installed. You must install peer dependencies
                yourself.
npm WARN [email protected] requires a peer of jasmine-core@* but none is
installed. You must install peer dependencies
                yourself.
npm WARN [email protected] No repository field.
npm WARN The package crypto-js is included as both a dev and production
dependency.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected]
(node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for
[email protected]: wanted {"os":"darwin","arch":"any
                   "} (current: {"os":"linux","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely
additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2019-05-09T04_15_32_895Z-debug.log


Please help us in this issue.

Thanks & Regards,
Thamlur Raju.

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16964): https://lists.onap.org/g/onap-discuss/message/16964
Mute This Topic: https://lists.onap.org/mt/31552091/21656
Group Owner: [email protected]
Unsubscribe: https://lists.onap.org/g/onap-discuss/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to