Open inewcombe27 opened 4 years ago
The version of Node in the setup script is outdated now. Replace the URL in line 8 of setup.sh with:
https://deb.nodesource.com/setup_14.x
I'll push a commit to fix the setup.sh script in the next few days.
On Sun, Jun 28, 2020, 14:37 Ian Newcombe notifications@github.com wrote:
Hi, when trying to run the setup.sh script, once it gets to the npm install setup, errors are encountered. Any ideas what might be causing this issue? Ouput from the script run below
pi@tempiture:~/Documents/development/smoker/tempiture $ sudo ./setup.sh
================================================================================
DEPRECATION WARNING
Node.js 6.x LTS Boron is no longer actively supported!
You will not receive security or critical stability updates for this version.
You should migrate to a supported version of Node.js as soon as possible. Use the installation script that corresponds to the version of Node.js you wish to install. e.g.
- https://deb.nodesource.com/setup_10.x — Node.js 10 LTS "Dubnium"
- https://deb.nodesource.com/setup_12.x — Node.js 12 LTS "Erbium" (recommended)
- https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium"
Please see https://github.com/nodejs/Release for details about which version may be appropriate for you.
The NodeSource Node.js distributions repository contains information both about supported versions of Node.js and supported Linux distributions. To learn more about usage, see the repository: https://github.com/nodesource/distributions
================================================================================
Continuing in 20 seconds ... Installing the NodeSource Node.js 6.x LTS Boron repo... Populating apt-get cache...
- apt-get update Hit:1 http://archive.raspberrypi.org/debian buster InRelease Hit:2 https://download.docker.com/linux/raspbian buster InRelease Hit:3 https://deb.nodesource.com/node_12.x buster InRelease Hit:4 http://raspbian.raspberrypi.org/raspbian buster InRelease Get:5 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease [23.5 kB] Get:6 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie/main armhf Packages [4,591 B] Fetched 28.1 kB in 4s (7,618 B/s) Reading package lists... Done
Confirming "buster" is supported...
- curl -sLf -o /dev/null ' https://deb.nodesource.com/node_6.x/dists/buster/Release'
Adding the NodeSource signing key to your keyring...
- curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add - OK
Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...
- echo 'deb https://deb.nodesource.com/node_6.x buster main' > /etc/apt/sources.list.d/nodesource.list
- echo 'deb-src https://deb.nodesource.com/node_6.x buster main' >> /etc/apt/sources.list.d/nodesource.list
Running apt-get update for you...
- apt-get update Hit:1 http://raspbian.raspberrypi.org/raspbian buster InRelease Hit:2 https://download.docker.com/linux/raspbian buster InRelease Hit:3 http://archive.raspberrypi.org/debian buster InRelease Get:4 https://deb.nodesource.com/node_6.x buster InRelease [4,634 B] Hit:5 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease Get:6 https://deb.nodesource.com/node_6.x buster/main armhf Packages [1,005 B] Fetched 5,639 B in 3s (1,967 B/s) Reading package lists... Done
Run sudo apt-get install -y nodejs to install Node.js 6.x LTS Boron and npm You may also need development tools to build native addons:
sudo apt-get install gcc g++ make
To install the Yarn package manager, run:
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Reading package lists... Done Building dependency tree Reading state information... Done nodejs is already the newest version (12.18.1-1nodesource1). The following packages were automatically installed and are no longer required: libc-ares2 libuv1 nodejs-doc rpi-eeprom-images Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done jq is already the newest version (1.5+dfsg-2+b1). The following packages were automatically installed and are no longer required: libc-ares2 libuv1 nodejs-doc rpi-eeprom-images Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree Reading state information... Done python-pip is already the newest version (18.1-5+rpt1). The following packages were automatically installed and are no longer required: libc-ares2 libuv1 nodejs-doc rpi-eeprom-images Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. /usr/bin/pm2 -> /usr/lib/node_modules/pm2/bin/pm2 /usr/bin/pm2-dev -> /usr/lib/node_modules/pm2/bin/pm2-dev /usr/bin/pm2-docker -> /usr/lib/node_modules/pm2/bin/pm2-docker /usr/bin/pm2-runtime -> /usr/lib/node_modules/pm2/bin/pm2-runtime npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
- pm2@4.4.0 updated 1 package in 28.001s
spi-device@0.2.6 install /home/pi/Documents/development/smoker/tempiture/node_modules/spi-device node-gyp rebuild
make: Entering directory '/home/pi/Documents/development/smoker/tempiture/node_modules/spi-device/build' CXX(target) Release/obj.target/spi/src/spi.o In file included from ../../nan/nan.h:190, from ../src/spi.cc:2: ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Localv8::Object, v8::Localv8::Value, v8::Localv8::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); ^
~~~ In file included from ../../nan/nan_converters.h:59, from ../../nan/nan.h:195, from ../src/spi.cc:2: ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan: 👿:ToFactoryBasev8::Boolean::return_t Nan:👿 :ToFactoryv8::Boolean::convert(v8::Localv8::Value)’: ../../nan/nan_converters_43_inl.h:18:69: warning: ‘v8::MaybeLocalv8::Boolean v8::Value::ToBoolean(v8::Localv8::Context) const’ is deprecated: 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) ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2664:59: note: declared here V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean( ^~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../../nan/nan_converters.h:59, from ../../nan/nan.h:195, from ../src/spi.cc:2: ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan: 👿:ValueFactoryBase::return_t Nan:👿 :ToFactory::convert(v8::Localv8::Value)’: ../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Localv8::Context) const’ is deprecated: 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 /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2702:51: note: declared here V8_WARN_UNUSED_RESULT Maybe BooleanValue( ^~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:196, from ../src/spi.cc:2: ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan:👿:FactoryBasev8::Function::return_t Nan:👿:Factoryv8::Function::New(Nan::FunctionCallback, v8::Localv8::Value)’: ../../nan/nan_implementation_12_inl.h:105:32: error: no matching function for call to ‘v8::Function::New(v8::Isolate&, void (&)(const v8::FunctionCallbackInfov8::Value&), v8::Localv8::Object&)’ , obj)); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:4275:31: note: candidate: ‘static v8::MaybeLocalv8::Function v8::Function::New(v8::Localv8::Context, v8::FunctionCallback, v8::Localv8::Value, int, v8::ConstructorBehavior, v8::SideEffectType)’ static MaybeLocal New( ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:4275:31: note: no known conversion for argument 1 from ‘v8::Isolate’ to ‘v8::Localv8::Context’ In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:196, from ../src/spi.cc:2: ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan:👿:FactoryBasev8::StringObject::return_t Nan:👿 :Factoryv8::StringObject::New(v8::Localv8::String)’: ../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Localv8::String&)’ return v8::StringObject::New(value).Asv8::StringObject(); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:5531:23: note: candidate: ‘static v8::Localv8::Value v8::StringObject::New(v8::Isolate, v8::Localv8::String)’ static Local New(Isolate isolate, Local value); ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:196, from ../src/spi.cc:2: ../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token return v8::StringObject::New(value).Asv8::StringObject(); ^ ../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token return v8::StringObject::New(value).Asv8::StringObject(); ^ In file included from ../src/spi.cc:2: ../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value )’: ../../nan/nan.h:833:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:833:60: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’: ../../nan/nan.h:848:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:175:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:848:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::String, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:175:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In function ‘v8::Localv8::Value Nan::MakeCallback(v8::Localv8::Object, const char, int, v8::Localv8::Value )’: ../../nan/nan.h:863:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:168:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:863:62: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, const char*, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:168:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Localv8::Value)’: ../../nan/nan.h:909:53: error: no matching function for call to ‘v8::Value::ToString()’ v8::Localv8::String string = from->ToString(); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocalv8::String v8::Value::ToString(v8::Localv8::Context) const’ V8_WARN_UNUSED_RESULT MaybeLocal ToString( ^~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2684:31: note: candidate: ‘v8::Localv8::String v8::Value::ToString(v8::Isolate) const’ Local ToString(Isolate isolate) const); ^~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided Local ToString(Isolate isolate) const); ^~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:919:74: error: no matching function for call to ‘v8::String::WriteUtf8(char*&, int, int, const int&)’ length = string->WriteUtf8(str_, staticcast(len), 0, flags); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const’ int WriteUtf8(Isolate isolate, char buffer, int length = -1, ^~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate*’ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::Callback::Call(v8::Isolate, v8::Localv8::Object, int, v8::Localv8::Value ) const’: ../../nan/nan.h:1477:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate*, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:1477:5: warning: ‘v8::Localv8::Value node::MakeCallback(v8::Isolate, v8::Localv8::Object, v8::Localv8::Function, int, v8::Localv8::Value)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here NODE_EXTERN v8::Localv8::Value MakeCallback( ^
~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Localv8::Value&)’: ../../nan/nan.h:1531:64: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(New(key).ToLocalChecked(), value); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Localv8::String&, const v8::Localv8::Value&)’: ../../nan/nan.h:1537:42: warning: ‘bool v8::Object::Set(v8::Localv8::Value, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(key, value); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3499:22: note: declared here bool Set(Local key, Local value)); ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Localv8::Value&)’: ../../nan/nan.h:1543:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Set(index, value); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3508:22: note: declared here bool Set(uint32_t index, Local value)); ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const char) const’: ../../nan/nan.h:1549:61: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations] New(persistentHandle)->Get(New(key).ToLocalChecked())); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(const v8::Localv8::String&) const’: ../../nan/nan.h:1555:55: warning: ‘v8::Localv8::Value v8::Object::Get(v8::Localv8::Value)’ is deprecated: Use maybe version [-Wdeprecated-declarations] return scope.Escape(New(persistentHandle)->Get(key)); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3553:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(Local key)); ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Localv8::Value Nan::AsyncWorker::GetFromPersistent(uint32_t) const’: ../../nan/nan.h:1560:57: warning: ‘v8::Localv8::Value v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations] return scope.Escape(New(persistentHandle)->Get(index)); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3557:51: note: declared here V8_DEPRECATED("Use maybe version", Local Get(uint32_t index)); ^~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: ../../nan/nan.h:1730:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast(AsyncExecuteComplete) ^ In file included from /usr/include/c++/8/cassert:44, from /home/pi/.cache/node-gyp/12.18.1/include/node/node_object_wrap.h:26, from ../../nan/nan.h:49, from ../src/spi.cc:2: ../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’: ../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’ assert(persistent().IsNearDeath()); ^ ~~In file included from ../../nan/nan.h:2220, from ../src/spi.cc:2: ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’: ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations] persistent().MarkIndependent(); ^ In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:570:22: note: declared here V8_INLINE void MarkIndependent()); ^~~~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from /usr/include/c++/8/cassert:44, from /home/pi/.cache/node-gyp/12.18.1/include/node/node_object_wrap.h:26, from ../../nan/nan.h:49, from ../src/spi.cc:2: ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfoNan::ObjectWrap&)’: ../../nan/nan_objectwrap.h:124:26: error: ‘class Nan::Persistentv8::Object’ has no member named ‘IsNearDeath’ assert(wrap->handle.IsNearDeath()); ^~~In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: ../src/spi.cc: At global scope: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void ()(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Localv8::Object)’} to ‘node::addon_register_func’ {aka ‘void ()(v8::Localv8::Object, v8::Localv8::Value, void)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), ^ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~ ../src/spi.cc:36:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(spi, InitAll) ^~~make: *** [spi.target.mk:115: Release/obj.target/spi/src/spi.o] Error 1 make: Leaving directory '/home/pi/Documents/development/smoker/tempiture/node_modules/spi-device/build' gyp ERR! build error gyp ERR! stack Error: make failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.118-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/Documents/development/smoker/tempiture/node_modules/spi-device gyp ERR! node -v v12.18.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN tempiture@0.1.0 No repository field.npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! spi-device@0.2.6 install: node-gyp rebuild npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the spi-device@0.2.6 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/pi/.npm/_logs/2020-06-28T19_35_40_184Z-debug.log
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kyleflan/tempiture/issues/7, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABKZFCQEFSSRX45QJR74GJDRY6LYPANCNFSM4OKVPCDQ .
Unfortunately I am getting this same error, even when using the updated nodesource url above. It appears that it is having issues installing the spi node. I was able to install the spi device node separately by using "npm install spi-device". However, it doesn't appear to be running with the job and providing temp values to the grafana dashboard.
My error is the exact same as above.
I fixed it by directly installing a version of the node that was failing. Specifically I did "npm i mcp-spi-adc@2.0.5". After that,everything seems to be working!
@Syntho524 I did the same thing last night, only I used the latest version of mcp-spi-adc, 3.1.0. I update the package.json file to point at this version and the 'npm install' was successful
@inewcombe27 would you be willing to submit a PR with this change?
I would like to tag on... the 'simple' way to get this going (and I just got it going) is to open the setup.sh (downloaded and opened in the regular instructions) and step through each item. You can catch the errors then (I remove the -u $PI-USER and manually enter the commands) I think 3 or 4 installs have changed since this was written...
First you have to install and test Apache2, enable SPI and change hostname to tempiture
then
I don't know if all of these are required, but I followed ALL the setup.sh steps manually but changed the following steps - all of the commands are done within the tempiture folder...you can see in the 'setup.sh' file what these commands replace... node, npm, docker-compose, are different versions, and docker-hypriot is completely replaced with now a pi version of docker.
-curl -sL https://deb.nodesource.com/setup_14.x | bash - #I had to run this as root -apt install python3-pip -y -pip3 install docker-compose -curl -fsSL https://get.docker.com -o get-docker.sh -bash get-docker.sh -usermod -aG docker $(whoami)
I had to do the previously posted commands to get the spi to correctly install...
-sudo npm i mcp-spi-adc@3.1.0
then I had to run within the tempiture folder -sudo npm install
Some WARN messages pop up, but it runs just fine...
Hi, when trying to run the setup.sh script, once it gets to the npm install setup, errors are encountered. Any ideas what might be causing this issue? Ouput from the script run below
pi@tempiture:~/Documents/development/smoker/tempiture $ sudo ./setup.sh
================================================================================
Node.js 6.x LTS Boron is no longer actively supported!
You will not receive security or critical stability updates for this version.
You should migrate to a supported version of Node.js as soon as possible. Use the installation script that corresponds to the version of Node.js you wish to install. e.g.
https://deb.nodesource.com/setup_14.x — Node.js 14 LTS "Fermium"
Please see https://github.com/nodejs/Release for details about which version may be appropriate for you.
The NodeSource Node.js distributions repository contains information both about supported versions of Node.js and supported Linux distributions. To learn more about usage, see the repository: https://github.com/nodesource/distributions
================================================================================
Continuing in 20 seconds ...
Installing the NodeSource Node.js 6.x LTS Boron repo...
Populating apt-get cache...
Hit:3 https://deb.nodesource.com/node_12.x buster InRelease
Hit:4 http://raspbian.raspberrypi.org/raspbian buster InRelease
Get:5 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease [23.5 kB]
Get:6 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie/main armhf Packages [4,591 B] Fetched 28.1 kB in 4s (7,618 B/s)
Reading package lists... Done
Confirming "buster" is supported...
Adding the NodeSource signing key to your keyring...
Creating apt sources list file for the NodeSource Node.js 6.x LTS Boron repo...
Running
apt-get update
for you...Hit:3 http://archive.raspberrypi.org/debian buster InRelease
Get:4 https://deb.nodesource.com/node_6.x buster InRelease [4,634 B]
Hit:5 https://packagecloud.io/Hypriot/Schatzkiste/debian jessie InRelease Get:6 https://deb.nodesource.com/node_6.x buster/main armhf Packages [1,005 B] Fetched 5,639 B in 3s (1,967 B/s) Reading package lists... Done
Run
sudo apt-get install -y nodejs
to install Node.js 6.x LTS Boron and npmYou may also need development tools to build native addons:
To install the Yarn package manager, run:
Reading package lists... Done Building dependency tree
Reading state information... Done nodejs is already the newest version (12.18.1-1nodesource1). The following packages were automatically installed and are no longer required: libc-ares2 libuv1 nodejs-doc rpi-eeprom-images Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done jq is already the newest version (1.5+dfsg-2+b1). The following packages were automatically installed and are no longer required: libc-ares2 libuv1 nodejs-doc rpi-eeprom-images Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Reading package lists... Done Building dependency tree
Reading state information... Done python-pip is already the newest version (18.1-5+rpt1). The following packages were automatically installed and are no longer required: libc-ares2 libuv1 nodejs-doc rpi-eeprom-images Use 'sudo apt autoremove' to remove them. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded. /usr/bin/pm2 -> /usr/lib/node_modules/pm2/bin/pm2 /usr/bin/pm2-dev -> /usr/lib/node_modules/pm2/bin/pm2-dev /usr/bin/pm2-docker -> /usr/lib/node_modules/pm2/bin/pm2-docker /usr/bin/pm2-runtime -> /usr/lib/node_modules/pm2/bin/pm2-runtime npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})
make: Entering directory '/home/pi/Documents/development/smoker/tempiture/node_modules/spi-device/build' CXX(target) Release/obj.target/spi/src/spi.o In file included from ../../nan/nan.h:190, from ../src/spi.cc:2: ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe Nan::ForceSet(v8::Local, v8::Local, v8::Local, 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);
^::return_t Nan::imp::ToFactory::convert(v8::Local)’:
../../nan/nan_converters_43_inl.h:18:69: warning: ‘v8::MaybeLocal v8::Value::ToBoolean(v8::Local) const’ is deprecated: 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)
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2664:59: note: declared here
V8_WARN_UNUSED_RESULT MaybeLocal ToBoolean(
^::return_t Nan::imp::ToFactory::convert(v8::Local)’:
../../nan/nan_converters_43_inl.h:37:57: warning: ‘v8::Maybe v8::Value::BooleanValue(v8::Local) const’ is deprecated: 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 /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2702:51: note: declared here
V8_WARN_UNUSED_RESULT Maybe BooleanValue(
^::return_t Nan::imp::Factory::New(Nan::FunctionCallback, v8::Local)’:
../../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::Local&)’
, obj));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:4275:31: note: candidate: ‘static v8::MaybeLocal v8::Function::New(v8::Local, v8::FunctionCallback, v8::Local, int, v8::ConstructorBehavior, v8::SideEffectType)’
static MaybeLocal New(
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:4275:31: note: no known conversion for argument 1 from ‘v8::Isolate ’ to ‘v8::Local’
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/spi.cc:2:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase::return_t Nan::imp::Factory::New(v8::Local)’:
../../nan/nan_implementation_12_inl.h:337:37: error: no matching function for call to ‘v8::StringObject::New(v8::Local&)’
return v8::StringObject::New(value).As();
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:5531:23: note: candidate: ‘static v8::Local v8::StringObject::New(v8::Isolate, v8::Local)’
static Local New(Isolate isolate, Local value);
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:5531:23: note: candidate expects 2 arguments, 1 provided
In file included from ../../nan/nan_new.h:189,
from ../../nan/nan.h:196,
from ../src/spi.cc:2:
../../nan/nan_implementation_12_inl.h:337:58: error: expected primary-expression before ‘>’ token
return v8::StringObject::New(value).As();
^
../../nan/nan_implementation_12_inl.h:337:60: error: expected primary-expression before ‘)’ token
return v8::StringObject::New(value).As();
^
In file included from ../src/spi.cc:2:
../../nan/nan.h: In function ‘v8::Local Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local)’:
../../nan/nan.h:833:60: warning: ‘v8::Local node::MakeCallback(v8::Isolate , v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^ node::MakeCallback(v8::Isolate , v8::Local, v8::Local, int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, func, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, v8::Local, int, v8::Local )’:
../../nan/nan.h:848:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:175:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^ node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, symbol, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:175:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^ Nan::MakeCallback(v8::Local, const char, int, v8::Local )’:
../../nan/nan.h:863:62: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, const char , int, v8::Local)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:168:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^ node::MakeCallback(v8::Isolate , v8::Local, const char, int, v8::Local )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
v8::Isolate::GetCurrent(), target, method, argc, argv);
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:168:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^)’:
../../nan/nan.h:909:53: error: no matching function for call to ‘v8::Value::ToString()’
v8::Local string = from->ToString();
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2668:44: note: candidate: ‘v8::MaybeLocal v8::Value::ToString(v8::Local) const’
V8_WARN_UNUSED_RESULT MaybeLocal ToString(
^ v8::Value::ToString(v8::Isolate) const’
Local ToString(Isolate isolate) const);
^ ToString(Isolate isolate) const);
^(len), 0, flags);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2878:7: note: candidate: ‘int v8::String::WriteUtf8(v8::Isolate, char, int, int, int) const’
int WriteUtf8(Isolate isolate, char buffer, int length = -1,
^ Nan::Callback::Call (v8::Isolate, v8::Local, int, v8::Local ) const’:
../../nan/nan.h:1477:5: warning: ‘v8::Local node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^ node::MakeCallback(v8::Isolate, v8::Local, v8::Local, int, v8::Local )’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
));
^
In file included from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:182:50: note: declared here
NODE_EXTERN v8::Local MakeCallback(
^&)’:
../../nan/nan.h:1531:64: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^&, const v8::Local&)’:
../../nan/nan.h:1537:42: warning: ‘bool v8::Object::Set(v8::Local, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(key, value);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3499:22: note: declared here
bool Set(Local key, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^&)’:
../../nan/nan.h:1543:44: warning: ‘bool v8::Object::Set(uint32_t, v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Set(index, value);
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3508:22: note: declared here
bool Set(uint32_t index, Local value));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::AsyncWorker::GetFromPersistent(const char ) const’:
../../nan/nan.h:1549:61: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
New(persistentHandle)->Get(New(key).ToLocalChecked()));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::AsyncWorker::GetFromPersistent(const v8::Local&) const’:
../../nan/nan.h:1555:55: warning: ‘v8::Local v8::Object::Get(v8::Local)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(key));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3553:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(Local key));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^ Nan::AsyncWorker::GetFromPersistent(uint32_t) const’:
../../nan/nan.h:1560:57: warning: ‘v8::Local v8::Object::Get(uint32_t)’ is deprecated: Use maybe version [-Wdeprecated-declarations]
return scope.Escape(New(persistentHandle)->Get(index));
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:3557:51: note: declared here
V8_DEPRECATED("Use maybe version", Local Get(uint32_t index));
^~~
/home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’
declarator attribute((deprecated(message)))
^(AsyncExecuteComplete)
^
In file included from /usr/include/c++/8/cassert:44,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node_object_wrap.h:26,
from ../../nan/nan.h:49,
from ../src/spi.cc:2:
../../nan/nan_object_wrap.h: In destructor ‘virtual Nan::ObjectWrap::~ObjectWrap()’:
../../nan/nan_object_wrap.h:24:25: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’
assert(persistent().IsNearDeath());
^::MarkIndependent() [with T = v8::Object]’ is deprecated: Weak objects are always considered independent. Use TracedGlobal when trying to use EmbedderHeapTracer. Use a strong handle when trying to keep an object alive. [-Wdeprecated-declarations]
persistent().MarkIndependent();
^
In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14,
from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27,
from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67,
from ../../nan/nan.h:47,
from ../src/spi.cc:2:
/home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:570:22: note: declared here
V8_INLINE void MarkIndependent());
^&)’:
../../nan/nan_objectwrap.h:124:26: error: ‘class Nan::Persistent’ has no member named ‘IsNearDeath’
assert(wrap->handle .IsNearDeath());
^ )(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void ()(v8::Local)’} to ‘node::addon_register_func’ {aka ‘void ( )(v8::Local, v8::Local, void*)’} [-Wcast-function-type]
(node::addon_register_func) (regfunc), \
^
/home/pi/.cache/node-gyp/12.18.1/include/node/node.h:642:3: note: in expansion of macro ‘NODE_MODULE_X’
NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage)
^
~~~ In file included from ../../nan/nan_converters.h:59, from ../../nan/nan.h:195, from ../src/spi.cc:2: ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ToFactoryBase~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../../nan/nan_converters.h:59, from ../../nan/nan.h:195, from ../src/spi.cc:2: ../../nan/nan_converters_43_inl.h: In static member function ‘static Nan::imp::ValueFactoryBase~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../../nan/nan_new.h:189, from ../../nan/nan.h:196, from ../src/spi.cc:2: ../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:833:60: warning: ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In function ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:848:62: warning: ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In function ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:863:62: warning: ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2668:44: note: candidate expects 1 argument, 0 provided In file included from /home/pi/.cache/node-gyp/12.18.1/include/node/v8-internal.h:14, from /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:27, from /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:67, from ../../nan/nan.h:47, from ../src/spi.cc:2: /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2684:31: note: candidate: ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2684:31: note: candidate expects 1 argument, 0 provided Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:919:74: error: no matching function for call to ‘v8::String::WriteUtf8(char&, int, int, const int&)’ length = string->WriteUtf8(str, staticcast~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8.h:2878:7: note: no known conversion for argument 1 from ‘char’ to ‘v8::Isolate*’ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h:1477:5: warning: ‘v8::Local~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:101:42: note: in definition of macro ‘NODE_DEPRECATED’ attribute((deprecated(message))) declarator ^~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const char, const v8::Local~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(const v8::Local~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘void Nan::AsyncWorker::SaveToPersistent(uint32_t, const v8::Local~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Local~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Local~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In member function ‘v8::Local~~~~~ In file included from ../src/spi.cc:2: ../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker)’: ../../nan/nan.h:1730:62: warning: cast between incompatible function types from ‘void ()(uv_work_t)’ {aka ‘void ()(uv_work_s)’} to ‘uv_after_work_cb’ {aka ‘void ()(uv_work_s, int)’} [-Wcast-function-type] , reinterpret_cast~~In file included from ../../nan/nan.h:2220, from ../src/spi.cc:2: ../../nan/nan_object_wrap.h: In member function ‘void Nan::ObjectWrap::MakeWeak()’: ../../nan/nan_object_wrap.h:67:34: warning: ‘void v8::PersistentBase~~~~~~ /home/pi/.cache/node-gyp/12.18.1/include/node/v8config.h:328:3: note: in definition of macro ‘V8_DEPRECATED’ declarator attribute((deprecated(message))) ^~~~~~ In file included from /usr/include/c++/8/cassert:44, from /home/pi/.cache/node-gyp/12.18.1/include/node/node_object_wrap.h:26, from ../../nan/nan.h:49, from ../src/spi.cc:2: ../../nan/nan_object_wrap.h: In static member function ‘static void Nan::ObjectWrap::WeakCallback(const v8::WeakCallbackInfo~~In file included from ../../nan/nan.h:47, from ../src/spi.cc:2: ../src/spi.cc: At global scope: /home/pi/.cache/node-gyp/12.18.1/include/node/node.h:608:43: warning: cast between incompatible function types from ‘void (~~~~ ../src/spi.cc:36:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(spi, InitAll) ^~~make: *** [spi.target.mk:115: Release/obj.target/spi/src/spi.o] Error 1 make: Leaving directory '/home/pi/Documents/development/smoker/tempiture/node_modules/spi-device/build' gyp ERR! build error gyp ERR! stack Error:make
failed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23) gyp ERR! stack at ChildProcess.emit (events.js:315:20) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12) gyp ERR! System Linux 4.19.118-v7+ gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild" gyp ERR! cwd /home/pi/Documents/development/smoker/tempiture/node_modules/spi-device gyp ERR! node -v v12.18.1 gyp ERR! node-gyp -v v5.1.0 gyp ERR! not ok npm WARN tempiture@0.1.0 No repository field.npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! spi-device@0.2.6 install:
node-gyp rebuild
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the spi-device@0.2.6 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/pi/.npm/_logs/2020-06-28T19_35_40_184Z-debug.log