You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The results below are for node v10.16.0 (npm v6.9.0).
Attempt 1 - install default package
$ npm install local-npm
CXX(target) Release/obj.target/leveldown/src/batch.o
In file included from ../../nan/nan.h:192:0,
from ../src/batch.cc:3:
../../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);
^
Attempt 2 - install from master branch
$ npm install https://github.com/local-npm/local-npm.git
CXX(target) Release/obj.target/leveldown/src/batch.o
In file included from ../../nan/nan_converters.h:67:0,
from ../../nan/nan.h:202,
from ../src/batch.cc:3:
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase<v8::Boolean>::return_t Nan::imp::ToFactory<v8::Boolean>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:18:69: warning: ‘v8::MaybeLocal<v8::Boolean> v8::Value::ToBoolean(v8::Local<v8::Context>) const’ is deprecated (declared at /home/muggeridge/.cache/node-gyp/12.17.0/include/node/v8.h:2663): ToBoolean can never throw. Use Local version. [-Wdeprecated-declarations]
val->To ## TYPE(v8::Isolate::GetCurrent()->GetCurrentContext()) \
^
../../nan/nan_converters_43_inl.h:22:1: note: in expansion of macro ‘X’
X(Boolean)
^
../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase<bool>::return_t Nan::imp::ToFactory<bool>::convert(v8::Local<v8::Value>)’:
../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe<bool> v8::Value::BooleanValue(v8::Local<v8::Context>) const’ is deprecated (declared at /home/muggeridge/.cache/node-gyp/12.17.0/include/node/v8.h:2701): BooleanValue can never throw. Use Isolate version. [-Wdeprecated-declarations]
return val->NAME ## Value(isolate->GetCurrentContext()); \
^
../../nan/nan_converters_43_inl.h:40:1: note: in expansion of macro ‘X’
X(bool, Boolean)
^
In file included from ../../nan/nan_new.h:189:0,
from ../../nan/nan.h:203,
from ../src/batch.cc:3:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::Function>::return_t Nan::imp::Factory<v8::Function>::New(Nan::FunctionCallback, v8::Local<v8::Value>)’:
../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate*&, void (&)(const v8::FunctionCallbackInfo<v8::Value>&), v8::Local<v8::Object>&)’
, obj));
^
Attempt 3 - install from latest tag (v1.6.0)
$ npm install https://github.com/local-npm/local-npm.git#v1.6.0
CXX(target) Release/obj.target/node_sqlite3/src/database.o
In file included from ../node_modules/nan/nan.h:192:0,
from ../src/database.h:10,
from ../src/database.cc:4:
../node_modules/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)’:
../node_modules/nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
Context
I need a local registry to enable installation of node_modules whilst offline.
Possible Implementation
Your Environment
Version used:
I tested with different LTS versions, as described at the top of this post.
Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
Server type and version:
$ uname -a
Linux myhost 10 4.12.14-95.29-default #1 SMP Thu Aug 1 15:34:33 UTC 2019 (47e48a4) x86_64 x86_64 x86_64 GNU/Linux
Operating System and version:
Link to your project:
The text was updated successfully, but these errors were encountered:
Compilation fails in different ways, depending on what version of node/npm are used.
Is this project still supported?
Is there an official support matrix for node/npm, local-npm?
NOTE: I am installing locally (ie. without the
-g
flag), since I do not have root privs on this Linux machine.Between each test, I ran:
I tried rebuilding with various LTS releases of npm and node:
I tried installing:
$ npm install local-npm
$ npm install https://github.com/local-npm/local-npm.git
$ npm install https://github.com/local-npm/local-npm.git#v1.6.0
Detailed Description
The results below are for node v10.16.0 (npm v6.9.0).
Attempt 1 - install default package
Attempt 2 - install from master branch
Attempt 3 - install from latest tag (v1.6.0)
Context
I need a local registry to enable installation of node_modules whilst offline.
Possible Implementation
Your Environment
Version used:
I tested with different LTS versions, as described at the top of this post.
Environment name and version (e.g. PHP 5.4 on nginx 1.9.1):
Server type and version:
The text was updated successfully, but these errors were encountered: