Code : Tout sélectionner
Début de l'installation
--2018-03-21 20:13:18-- https://raw.githubusercontent.com/lunarok/jeedom_nodejs/master/nodejs.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1592 (1.6K) [text/plain]
Saving to: 'dependencies.sh'
0K . 100% 22.4M=0s
2018-03-21 20:13:18 (22.4 MB/s) - 'dependencies.sh' saved [1592/1592]
Version actuelle : 8
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
dependencies.sh: 20: [: stretch: unexpected operator
Ok, version suffisante
> serialport@4.0.7 install /var/www/html/plugins/rflink/resources/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/local/bin/node',
node-pre-gyp verb cli '/var/www/html/plugins/rflink/resources/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli 'install',
node-pre-gyp verb cli '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@9.9.0 | linux | arm
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/var/www/html/plugins/rflink/resources/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@9.9.0 (node-v59 ABI) (falling back to source compile with node-gyp)
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz
node-pre-gyp verb command build [ 'rebuild' ]
make: Entering directory '/var/www/html/plugins/rflink/resources/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function 'int getIntFromObject(v8::Local<v8::Object>, std::__cxx11::string)':
../src/serialport.cpp:90:52: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
return getValueFromObject(options, key)->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp: In function 'double getDoubleFromObject(v8::Local<v8::Object>, std::__cxx11::string)':
../src/serialport.cpp:102:53: warning: 'v8::Local<v8::Number> v8::Value::ToNumber() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
return getValueFromObject(options, key)->ToNumber()->NumberValue();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9853:15: note: declared here
Local<Number> Value::ToNumber() const {
^~~~~
../src/serialport.cpp: In function 'void EIO_AfterOpen(uv_work_t*)':
../src/serialport.cpp:174:31: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = argv[1]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp:180:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:193:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp:217:116: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp: In function 'void EIO_AfterUpdate(uv_work_t*)':
../src/serialport.cpp:240:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:252:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp: In function 'void EIO_AfterWrite(uv_work_t*)':
../src/serialport.cpp:339:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:369:32: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
baton->fd = info[0]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp: In function 'void EIO_AfterClose(uv_work_t*)':
../src/serialport.cpp:403:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport.cpp: In function 'void EIO_AfterList(uv_work_t*)':
../src/serialport.cpp:465:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:480:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp: In function 'void EIO_AfterFlush(uv_work_t*)':
../src/serialport.cpp:516:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(2, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:528:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp: In function 'void EIO_AfterSet(uv_work_t*)':
../src/serialport.cpp:573:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:585:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
int fd = info[0]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport.cpp: In function 'void EIO_AfterDrain(uv_work_t*)':
../src/serialport.cpp:617:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
data->callback.Call(1, argv);
^
In file included from ../src/./serialport.h:7:0,
from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
../src/serialport_unix.cpp: In function 'OpenBatonPlatformOptions* ParsePlatformOptions(const v8::Local<v8::Object>&)':
../src/serialport_unix.cpp:44:109: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
result->vmin = Nan::Get(options, Nan::New<v8::String>("vmin").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
../src/serialport_unix.cpp:45:111: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
result->vtime = Nan::Get(options, Nan::New<v8::String>("vtime").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/./serialport.h:7,
from ../src/serialport_unix.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
CXX(target) Release/obj.target/serialport/src/serialport_poller.o
../src/serialport_poller.cpp: In member function 'void SerialportPoller::callCallback(int)':
../src/serialport_poller.cpp:47:26: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
callback_->Call(1, argv);
^
In file included from ../src/serialport_poller.cpp:5:0:
../../nan/nan.h:1618:3: note: declared here
Call(int argc, v8::Local<v8::Value> argv[]) const {
^~~~
../src/serialport_poller.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE SerialportPoller::New(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport_poller.cpp:86:31: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
obj->fd_ = info[0]->ToInt32()->Int32Value();
^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
from ../../nan/nan.h:51,
from ../src/serialport_poller.cpp:5:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
Local<Int32> Value::ToInt32() const {
^~~~~
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
make: Leaving directory '/var/www/html/plugins/rflink/resources/node_modules/serialport/build'
node-pre-gyp info ok
npm notice created a lockfile as package-lock.json. You should commit this file.
added 204 packages in 51.179s
Fin de l'installation
Je tiens à prciser que je possede aussi le plugin mobile et que j'ai eu du mal a l'installer avec npm (au passage, il ne marche plus.....)