Page MenuHomePhabricator
Paste P16436

Errors in npm install
ActivePublic

Authored by Sahilgrewalhere on Jun 13 2021, 7:03 PM.
Tags
None
Referenced Files
F34498071: Errors in npm install
Jun 13 2021, 7:07 PM
F34498066: Errors in npm install
Jun 13 2021, 7:03 PM
Subscribers
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/RevisionSlider$ fresh-node -env -net
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/RevisionSlider$ code .
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/RevisionSlider$ npm i
> [email protected] install /home/sahil/Desktop/newmedi/mediawiki/extensions/RevisionSlider/node_modules/fibers
> node build.js || nodejs build.js
make: Entering directory '/home/sahil/Desktop/newmedi/mediawiki/extensions/RevisionSlider/node_modules/fibers/build'
CXX(target) Release/obj.target/fibers/src/fibers.o
../src/fibers.cc: In function ‘void uni::SetAccessor(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&), void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&))’:
../src/fibers.cc:355:87: warning: cast between incompatible function types from ‘uni::FunctionType (*)(v8::Local<v8::String>, const GetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, const v8::PropertyCallbackInfo<v8::Value>&)’} to ‘v8::AccessorNameGetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&)’} [-Wcast-function-type]
355 | object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
| ^~~~~~
../src/fibers.cc:355:123: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const SetterCallbackInfo&)’ {aka ‘void (*)(v8::Local<v8::String>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} to ‘v8::AccessorNameSetterCallback’ {aka ‘void (*)(v8::Local<v8::Name>, v8::Local<v8::Value>, const v8::PropertyCallbackInfo<void>&)’} [-Wcast-function-type]
355 | object->SetAccessor(isolate->GetCurrentContext(), name, (AccessorNameGetterCallback)getter, (AccessorNameSetterCallback)setter).ToChecked();
| ^~~~~~
In file included from ../src/coroutine.h:1,
from ../src/fibers.cc:1:
../src/fibers.cc: At global scope:
/home/sahil/.node-gyp/10.15.2/include/node/node.h:570:43: warning: cast between incompatible function types from ‘void (*)(v8::Local<v8::Object>)’ to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
570 | (node::addon_register_func) (regfunc), \
| ^
/home/sahil/.node-gyp/10.15.2/include/node/node.h:604:3: note: in expansion of macro ‘NODE_MODULE_X’
604 | NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
| ^~~~~~~~~~~~~
../src/fibers.cc:930:1: note: in expansion of macro ‘NODE_MODULE’
930 | NODE_MODULE(fibers, init)
| ^~~~~~~~~~~
CXX(target) Release/obj.target/fibers/src/coroutine.o
CC(target) Release/obj.target/fibers/src/libcoro/coro.o
SOLINK_MODULE(target) Release/obj.target/fibers.node
COPY Release/fibers.node
make: Leaving directory '/home/sahil/Desktop/newmedi/mediawiki/extensions/RevisionSlider/node_modules/fibers/build'
Installed in `/home/sahil/Desktop/newmedi/mediawiki/extensions/RevisionSlider/node_modules/fibers/bin/linux-x64-64-glibc/fibers.node`
> [email protected] postinstall /home/sahil/Desktop/newmedi/mediawiki/extensions/RevisionSlider/node_modules/core-js
> node -e "try{require('./postinstall')}catch(e){}"
Thank you for using core-js ( https://github.com/zloirock/core-js ) for polyfilling JavaScript standard library!
The project needs your help! Please consider supporting of core-js on Open Collective or Patreon:
> https://opencollective.com/core-js
> https://www.patreon.com/zloirock
Also, the author of core-js ( https://github.com/zloirock ) is looking for a good job -)
> [email protected] postinstall /home/sahil/Desktop/newmedi/mediawiki/extensions/RevisionSlider/node_modules/core-js-pure
> node -e "try{require('./postinstall')}catch(e){}"
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/mocha/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 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"})
added 957 packages from 746 contributors and audited 959 packages in 26.871s
found 8 vulnerabilities (7 moderate, 1 high)
run `npm audit fix` to fix them, or `npm audit` for details
sahil@sahil-VirtualBox:~/Desktop/newmedi/mediawiki/extensions/RevisionSlider$