Skip to content
This repository was archived by the owner on Jan 26, 2021. It is now read-only.
This repository was archived by the owner on Jan 26, 2021. It is now read-only.

Error when installing d3-celestial #14

@jgalazm

Description

@jgalazm

When running npm install on the d3-celestial folder I'm getting this error (at the end)

Here other people reported the same issue
nodejs/node-gyp#809

I deleted node-modules and~./node-gyp and restarted but did not work.

Finally the solution that worked for me was deleting the node-modules folder and running

    sudo ln -s `which nodejs` /usr/bin/node
    sudo npm install

Then, if I delete node-modules and run npm install I get the same error, but if instead I use sudo npm install I don't.

The error:

jose@jose-samsung:/media/jose/Docs/github/LSST/d3-celestial$ npm install

> contextify@0.1.15 install /media/jose/Docs/github/LSST/d3-celestial/node_modules/contextify
> node-gyp rebuild

make: Entering directory '/media/jose/Docs/github/LSST/d3-celestial/node_modules/contextify/build'
  CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc: In static member function ‘static v8::Local<v8::Context> ContextWrap::createV8Context(v8::Local<v8::Object>)’:
../src/contextify.cc:131:68: warning: ‘v8::Local<v8::Object> v8::Function::NewInstance() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         Local<Object> wrapper = Nan::New(constructor)->NewInstance();
                                                                    ^
In file included from /home/jose/.node-gyp/8.2.1/include/node/v8.h:26:0,
                 from /home/jose/.node-gyp/8.2.1/include/node/node.h:63,
                 from ../src/contextify.cc:1:
/home/jose/.node-gyp/8.2.1/include/node/v8.h:3674:52: note: declared here
   V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
                                                    ^
/home/jose/.node-gyp/8.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
../src/contextify.cc:150:16: error: ‘class v8::ObjectTemplate’ has no member named ‘SetAccessCheckCallbacks’
         otmpl->SetAccessCheckCallbacks(GlobalPropertyNamedAccessCheck,
                ^
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyGetter(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Value>&)’:
../src/contextify.cc:182:80: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         Local<Value> rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
                                                                                ^
In file included from /home/jose/.node-gyp/8.2.1/include/node/v8.h:26:0,
                 from /home/jose/.node-gyp/8.2.1/include/node/node.h:63,
                 from ../src/contextify.cc:1:
/home/jose/.node-gyp/8.2.1/include/node/v8.h:3228:30: note: declared here
                 Local<Value> GetRealNamedProperty(Local<String> key));
                              ^
/home/jose/.node-gyp/8.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
../src/contextify.cc: In static member function ‘static void ContextWrap::GlobalPropertyQuery(v8::Local<v8::String>, const Nan::PropertyCallbackInfo<v8::Integer>&)’:
../src/contextify.cc:209:67: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
         if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
                                                                   ^
In file included from /home/jose/.node-gyp/8.2.1/include/node/v8.h:26:0,
                 from /home/jose/.node-gyp/8.2.1/include/node/node.h:63,
                 from ../src/contextify.cc:1:
/home/jose/.node-gyp/8.2.1/include/node/v8.h:3228:30: note: declared here
                 Local<Value> GetRealNamedProperty(Local<String> key));
                              ^
/home/jose/.node-gyp/8.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
../src/contextify.cc:210:71: warning: ‘v8::Local<v8::Value> v8::Object::GetRealNamedProperty(v8::Local<v8::String>)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
             !Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
                                                                       ^
In file included from /home/jose/.node-gyp/8.2.1/include/node/v8.h:26:0,
                 from /home/jose/.node-gyp/8.2.1/include/node/node.h:63,
                 from ../src/contextify.cc:1:
/home/jose/.node-gyp/8.2.1/include/node/v8.h:3228:30: note: declared here
                 Local<Value> GetRealNamedProperty(Local<String> key));
                              ^
/home/jose/.node-gyp/8.2.1/include/node/v8config.h:329:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^
contextify.target.mk:95: recipe for target 'Release/obj.target/contextify/src/contextify.o' failed
make: *** [Release/obj.target/contextify/src/contextify.o] Error 1
make: Leaving directory '/media/jose/Docs/github/LSST/d3-celestial/node_modules/contextify/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/home/jose/.nvm/versions/node/v8.2.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:258:23)
gyp ERR! stack     at emitTwo (events.js:125:13)
gyp ERR! stack     at ChildProcess.emit (events.js:213:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Linux 4.4.0-104-generic
gyp ERR! command "/home/jose/.nvm/versions/node/v8.2.1/bin/node" "/home/jose/.nvm/versions/node/v8.2.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js""rebuild"
gyp ERR! cwd /media/jose/Docs/github/LSST/d3-celestial/node_modules/contextify
gyp ERR! node -v v8.2.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN d3-celestial@0.5.8 license should be a valid SPDX license expression

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! contextify@0.1.15 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the contextify@0.1.15 install 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/jose/.npm/_logs/2018-01-08T19_58_33_508Z-debug.log

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions