Node-sass: [Unsupported] Installing node-sass 4.5.3 failed on NodeJS 10

Created on 16 Jul 2018  Â·  2Comments  Â·  Source: sass/node-sass

Output from yarn install

error /home/tiendq/Projects/web-ui/node_modules/node-sass: Command failed.
Command: node scripts/build.js

Building: /usr/bin/node /home/tiendq/Projects/web-ui/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

There were tons of g++ commands, but below commands showed with errors. Most errors were related to file nan.h

g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/tiendq/.node-gyp/10.6.0/include/node -I/home/tiendq/.node-gyp/10.6.0/src -I/home/tiendq/.node-gyp/10.6.0/deps/uv/include -I/home/tiendq/.node-gyp/10.6.0/deps/v8/include -I../../nan -I../src/libsass/include  -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw   -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../../nan/nan.h:192:0,
                 from ../src/binding.cpp:1:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
               ^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:835:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:49:0,
                 from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:850:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:49:0,
                 from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:865:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:49:0,
                 from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1479:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:49:0,
                 from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^
binding.target.mk:115: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: Leaving directory '/home/tiendq/Projects/web-ui/node_modules/node-sass/build'
make: *** [Release/obj.target/binding/src/binding.o] Error 1

node -v v10.6.0
node-gyp -v v3.6.1

Invalid - Old Node-Sass Node 10

Most helpful comment

Update to a newer verify of node sass. Check the compatibility table in the
release notes to see which versions support node 10

On Mon., 16 Jul. 2018, 5:18 pm Tien Do, notifications@github.com wrote:

Output from yarn install

error /home/tiendq/Projects/web-ui/node_modules/node-sass: Command failed.
Command: node scripts/build.js

Building: /usr/bin/node /home/tiendq/Projects/web-ui/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

There were tons of g++ commands, but below commands showed with errors.
Most errors were related to file nan.h

g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/tiendq/.node-gyp/10.6.0/include/node -I/home/tiendq/.node-gyp/10.6.0/src -I/home/tiendq/.node-gyp/10.6.0/deps/uv/include -I/home/tiendq/.node-gyp/10.6.0/deps/v8/include -I../../nan -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../../nan/nan.h:192:0,
from ../src/binding.cpp:1:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’:
../../nan/nan.h:835:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate
, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local
)’:
../../nan/nan.h:850:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:165:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local)’:
../../nan/nan.h:865:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:158:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call_(v8::Isolate
, v8::Local, int, v8::Local) const’:
../../nan/nan.h:1479:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate
, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^binding.target.mk:115: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: Leaving directory '/home/tiendq/Projects/web-ui/node_modules/node-sass/build'
make: *
* [Release/obj.target/binding/src/binding.o] Error 1

node -v v10.6.0
node-gyp -v v3.6.1

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/2446, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWDZ1GGuoJOIydvJuMzuUdq4xrZnrks5uHD5IgaJpZM4VQqRc
.

All 2 comments

Update to a newer verify of node sass. Check the compatibility table in the
release notes to see which versions support node 10

On Mon., 16 Jul. 2018, 5:18 pm Tien Do, notifications@github.com wrote:

Output from yarn install

error /home/tiendq/Projects/web-ui/node_modules/node-sass: Command failed.
Command: node scripts/build.js

Building: /usr/bin/node /home/tiendq/Projects/web-ui/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=

There were tons of g++ commands, but below commands showed with errors.
Most errors were related to file nan.h

g++ '-DNODE_GYP_MODULE_NAME=binding' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_LARGEFILE_SOURCE' '-D_FILE_OFFSET_BITS=64' '-DBUILDING_NODE_EXTENSION' -I/home/tiendq/.node-gyp/10.6.0/include/node -I/home/tiendq/.node-gyp/10.6.0/src -I/home/tiendq/.node-gyp/10.6.0/deps/uv/include -I/home/tiendq/.node-gyp/10.6.0/deps/v8/include -I../../nan -I../src/libsass/include -fPIC -pthread -Wall -Wextra -Wno-unused-parameter -m64 -O3 -fno-omit-frame-pointer -fno-rtti -fno-exceptions -std=gnu++1y -std=c++0x -MMD -MF ./Release/.deps/Release/obj.target/binding/src/binding.o.d.raw -c -o Release/obj.target/binding/src/binding.o ../src/binding.cpp
In file included from ../../nan/nan.h:192:0,
from ../src/binding.cpp:1:
../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, v8::PropertyAttribute)’:
../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs);
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’:
../../nan/nan.h:835:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate
, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local
)’:
../../nan/nan.h:850:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:165:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, const char, int, v8::Local)’:
../../nan/nan.h:865:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:158:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^
In file included from ../src/binding.cpp:1:0:
../../nan/nan.h: In member function ‘v8::Local Nan::Callback::Call_(v8::Isolate
, v8::Local, int, v8::Local) const’:
../../nan/nan.h:1479:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate
, v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../../nan/nan.h:49:0,
from ../src/binding.cpp:1:
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:172:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^
/home/tiendq/.node-gyp/10.6.0/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’
__attribute__((deprecated(message))) declarator
^binding.target.mk:115: recipe for target 'Release/obj.target/binding/src/binding.o' failed
make: Leaving directory '/home/tiendq/Projects/web-ui/node_modules/node-sass/build'
make: *
* [Release/obj.target/binding/src/binding.o] Error 1

node -v v10.6.0
node-gyp -v v3.6.1

—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/sass/node-sass/issues/2446, or mute the thread
https://github.com/notifications/unsubscribe-auth/AAjZWDZ1GGuoJOIydvJuMzuUdq4xrZnrks5uHD5IgaJpZM4VQqRc
.

Thanks, it was from an old project and I didn't check the release notes carefully. Upgraded to 4.9.2 and no more build error :)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

liuyuqiang picture liuyuqiang  Â·  3Comments

paulcpederson picture paulcpederson  Â·  3Comments

pulkitnandan picture pulkitnandan  Â·  4Comments

harukaeru picture harukaeru  Â·  3Comments

amarbham picture amarbham  Â·  3Comments