Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install spectral-workbench failed #51

Open
shenzj1994 opened this issue Feb 6, 2018 · 7 comments
Open

npm install spectral-workbench failed #51

shenzj1994 opened this issue Feb 6, 2018 · 7 comments

Comments

@shenzj1994
Copy link

Please describe your problem in detail, including:

What happened before you saw the error

Run 'npm install spectral-workbench'

What you expected to happen

It should install, I guess.

Browser, version, and operating system

Node container in Docker.
Node v9.5.0
(to help reproduce the issue)

Output

root@6198d100cf95:/data/test# npm install spectral-workbench
npm WARN deprecated [email protected]: Use uuid module instead
npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130

[email protected] install /data/test/node_modules/contextify
node-gyp rebuild

make: Entering directory '/data/test/node_modules/contextify/build'
CXX(target) Release/obj.target/contextify/src/contextify.o
../src/contextify.cc: In static member function 'static v8::Localv8::Context ContextWrap::createV8Context(v8::Localv8::Object)':
../src/contextify.cc:131:68: warning: 'v8::Localv8::Object v8::Function::NewInstance() const' is deprecated (declared at /root/.node-gyp/9.5.0/include/node/v8.h:3848): Use maybe version [-Wdeprecated-declarations]
Local wrapper = Nan::New(constructor)->NewInstance();
^
../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::Localv8::String, const Nan::PropertyCallbackInfov8::Value&)':
../src/contextify.cc:182:80: warning: 'v8::Localv8::Value v8::Object::GetRealNamedProperty(v8::Localv8::String)' is deprecated (declared at /root/.node-gyp/9.5.0/include/node/v8.h:3400): Use maybe version [-Wdeprecated-declarations]
Local rv = Nan::New(ctx->sandbox)->GetRealNamedProperty(property);
^
../src/contextify.cc: In static member function 'static void ContextWrap::GlobalPropertyQuery(v8::Localv8::String, const Nan::PropertyCallbackInfov8::Integer&)':
../src/contextify.cc:209:67: warning: 'v8::Localv8::Value v8::Object::GetRealNamedProperty(v8::Localv8::String)' is deprecated (declared at /root/.node-gyp/9.5.0/include/node/v8.h:3400): Use maybe version [-Wdeprecated-declarations]
if (!Nan::New(ctx->sandbox)->GetRealNamedProperty(property).IsEmpty() ||
^
../src/contextify.cc:210:71: warning: 'v8::Localv8::Value v8::Object::GetRealNamedProperty(v8::Localv8::String)' is deprecated (declared at /root/.node-gyp/9.5.0/include/node/v8.h:3400): Use maybe version [-Wdeprecated-declarations]
!Nan::New(ctx->proxyGlobal)->GetRealNamedProperty(property).IsEmpty()) {
^
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 '/data/test/node_modules/contextify/build'
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:258:23)
gyp ERR! stack at ChildProcess.emit (events.js:160:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
gyp ERR! System Linux 4.9.60-linuxkit-aufs
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 /data/test/node_modules/contextify
gyp ERR! node -v v9.5.0
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm WARN enoent ENOENT: no such file or directory, open '/data/test/package.json'
npm WARN test No description
npm WARN test No repository field.
npm WARN test No README data
npm WARN test No license field.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] install: node-gyp rebuild
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] 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! /root/.npm/_logs/2018-02-06T08_44_21_917Z-debug.log

@jywarren
Copy link
Member

Oh, this is no good! Have you figured out a way around it? It's during compiling the contextify module: https://www.npmjs.com/package/contextify maybe a more recent version is needed in our package.json or something that depends on contexify? Could be worth checking their repository to see if others have seen a similar issue?

@shenzj1994
Copy link
Author

Haven't check these yet but I will take a look later...

@ghost
Copy link

ghost commented Aug 1, 2018

Is there a known package configuration that works around this issue?

@jywarren
Copy link
Member

jywarren commented Aug 1, 2018

I'm not sure - have you checked on contextify's issue tracker, or potentially a more recent version of contextify? Contextify says it's not longer needed:

https://www.npmjs.com/package/contextify

Do you know where it's being included?

https://github.com/publiclab/spectral-workbench.js/blob/master/package.json#L26-L29

@ghost
Copy link

ghost commented Aug 2, 2018

Unsure where it's being included. I believe it's a UI-related package. Luckily I only needed the spectral-workbench backend and managed to get a function spectral-workbench.js with only having installed Cairo, and the Canvas and Request npm packages.

@jywarren
Copy link
Member

jywarren commented Aug 5, 2018 via email

@jywarren
Copy link
Member

#77 may include some helpful hints...!

Issue resolved by updating all the packages.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants