botgram / shell-bot

:robot: Telegram bot that executes commands and sends the live output
GNU General Public License v3.0
787 stars 493 forks source link

Build error #8

Closed hrvstr closed 5 years ago

hrvstr commented 5 years ago

Hi, is this project still supported?

I have NPM 6.5.0 and build-essentials installed on Debian. When I try to install the bot I got the following error:

pty.target.mk:99: recipe for target 'Release/obj.target/pty/src/unix/pty.o' failed
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory '/home/dietpi/shell-bot/node_modules/pty.js/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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.14.79-v7+
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 /home/dietpi/shell-bot/node_modules/pty.js
gyp ERR! node -v v11.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pty.js@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the pty.js@0.3.1 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/dietpi/.npm/_logs/2019-02-04T17_19_03_693Z-debug.log

Thanks for the help and awesome project!

Edit:

Here is the full log of the install:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node', '/usr/local/bin/npm', 'install' ]
2 info using npm@6.5.0
3 info using node@v11.9.0
4 verbose npm-session 56f59fecf5148bf8
5 silly install runPreinstallTopLevelLifecycles
6 silly preinstall shell-bot@0.0.1
7 info lifecycle shell-bot@0.0.1~preinstall: shell-bot@0.0.1
8 silly install loadCurrentTree
9 silly install readLocalPackageData
10 timing stage:loadCurrentTree Completed in 554ms
11 silly install loadIdealTree
12 silly install cloneCurrentTreeToIdealTree
13 timing stage:loadIdealTree:cloneCurrentTree Completed in 6ms
14 silly install loadShrinkwrap
15 timing stage:loadIdealTree:loadShrinkwrap Completed in 67ms
16 silly install loadAllDepsIntoIdealTree
17 http fetch GET 304 https://registry.npmjs.org/pty.js 790ms (from cache)
18 silly pacote range manifest for pty.js@0.3 fetched in 890ms
19 http fetch GET 304 https://registry.npmjs.org/extend 180ms (from cache)
20 silly pacote range manifest for extend@~1.2.1 fetched in 195ms
21 http fetch GET 304 https://registry.npmjs.org/nan 272ms (from cache)
22 silly pacote version manifest for nan@2.3.5 fetched in 292ms
23 silly pacote range manifest for pty.js@0.3 fetched in 21ms
24 silly resolveWithNewModule pty.js@0.3.1 checking installable status
25 silly pacote range manifest for extend@~1.2.1 fetched in 15ms
26 silly resolveWithNewModule extend@1.2.1 checking installable status
27 silly pacote version manifest for nan@2.3.5 fetched in 21ms
28 silly resolveWithNewModule nan@2.3.5 checking installable status
29 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 2585ms
30 timing stage:loadIdealTree Completed in 2747ms
31 silly currentTree shell-bot@0.0.1
31 silly currentTree ├── asynckit@0.4.0
31 silly currentTree ├── balanced-match@1.0.0
31 silly currentTree ├── botgram@2.2.0
31 silly currentTree ├── brace-expansion@1.1.11
31 silly currentTree ├── combined-stream@1.0.7
31 silly currentTree ├── concat-map@0.0.1
31 silly currentTree ├── delayed-stream@1.0.0
31 silly currentTree ├── escape-html@1.0.3
31 silly currentTree ├── form-data@2.3.3
31 silly currentTree ├── mime-db@1.37.0
31 silly currentTree ├── mime-types@2.1.21
31 silly currentTree ├── mime@1.6.0
31 silly currentTree ├── minimatch@3.0.4
31 silly currentTree ├── node-uuid@1.4.8
31 silly currentTree └── terminal.js@1.0.9
32 silly idealTree shell-bot@0.0.1
32 silly idealTree ├── asynckit@0.4.0
32 silly idealTree ├── balanced-match@1.0.0
32 silly idealTree ├── botgram@2.2.0
32 silly idealTree ├── brace-expansion@1.1.11
32 silly idealTree ├── combined-stream@1.0.7
32 silly idealTree ├── concat-map@0.0.1
32 silly idealTree ├── delayed-stream@1.0.0
32 silly idealTree ├── escape-html@1.0.3
32 silly idealTree ├── extend@1.2.1
32 silly idealTree ├── form-data@2.3.3
32 silly idealTree ├── mime-db@1.37.0
32 silly idealTree ├── mime-types@2.1.21
32 silly idealTree ├── mime@1.6.0
32 silly idealTree ├── minimatch@3.0.4
32 silly idealTree ├── nan@2.3.5
32 silly idealTree ├── node-uuid@1.4.8
32 silly idealTree ├── pty.js@0.3.1
32 silly idealTree └── terminal.js@1.0.9
33 silly install generateActionsToTake
34 timing stage:generateActionsToTake Completed in 61ms
35 silly diffTrees action count 3
36 silly diffTrees add extend@1.2.1
37 silly diffTrees add nan@2.3.5
38 silly diffTrees add pty.js@0.3.1
39 silly decomposeActions action count 24
40 silly decomposeActions fetch extend@1.2.1
41 silly decomposeActions extract extend@1.2.1
42 silly decomposeActions preinstall extend@1.2.1
43 silly decomposeActions build extend@1.2.1
44 silly decomposeActions install extend@1.2.1
45 silly decomposeActions postinstall extend@1.2.1
46 silly decomposeActions finalize extend@1.2.1
47 silly decomposeActions refresh-package-json extend@1.2.1
48 silly decomposeActions fetch nan@2.3.5
49 silly decomposeActions extract nan@2.3.5
50 silly decomposeActions preinstall nan@2.3.5
51 silly decomposeActions build nan@2.3.5
52 silly decomposeActions install nan@2.3.5
53 silly decomposeActions postinstall nan@2.3.5
54 silly decomposeActions finalize nan@2.3.5
55 silly decomposeActions refresh-package-json nan@2.3.5
56 silly decomposeActions fetch pty.js@0.3.1
57 silly decomposeActions extract pty.js@0.3.1
58 silly decomposeActions preinstall pty.js@0.3.1
59 silly decomposeActions build pty.js@0.3.1
60 silly decomposeActions install pty.js@0.3.1
61 silly decomposeActions postinstall pty.js@0.3.1
62 silly decomposeActions finalize pty.js@0.3.1
63 silly decomposeActions refresh-package-json pty.js@0.3.1
64 silly install executeActions
65 silly doSerial global-install 24
66 verbose correctMkdir /home/dietpi/.npm/_locks correctMkdir not in flight; initializing
67 timing audit compress Completed in 27ms
68 info audit Submitting payload of 1347bytes
69 verbose lock using /home/dietpi/.npm/_locks/staging-6c46c94766d3a652.lock for /home/dietpi/shell-bot/node_modules/.staging
70 silly doParallel extract 3
71 silly extract extend@1.2.1
72 silly extract nan@2.3.5
73 silly extract pty.js@0.3.1
74 silly tarball trying extend@~1.2.1 by hash: sha1-oPX9bPyDpf5J72mNYOyKYk3UV2w=
75 silly tarball trying nan@2.3.5 by hash: sha1-gioNwmYpDOTNOhIoLKPn42Rmigg=
76 silly tarball trying pty.js@0.3 by hash: sha1-gfW+0zLW5eeraFaI0boDc0ENUbU=
77 silly extract extend@~1.2.1 extracted to /home/dietpi/shell-bot/node_modules/.staging/extend-b56b0ba3 (397ms)
78 silly extract pty.js@0.3 extracted to /home/dietpi/shell-bot/node_modules/.staging/pty.js-3c4b29e4 (430ms)
79 silly extract nan@2.3.5 extracted to /home/dietpi/shell-bot/node_modules/.staging/nan-31150168 (489ms)
80 timing action:extract Completed in 514ms
81 silly doReverseSerial unbuild 24
82 silly doSerial remove 24
83 silly doSerial move 24
84 silly doSerial finalize 24
85 silly finalize /home/dietpi/shell-bot/node_modules/extend
86 silly finalize /home/dietpi/shell-bot/node_modules/nan
87 silly finalize /home/dietpi/shell-bot/node_modules/pty.js
88 timing action:finalize Completed in 46ms
89 silly doParallel refresh-package-json 3
90 silly refresh-package-json /home/dietpi/shell-bot/node_modules/extend
91 silly refresh-package-json /home/dietpi/shell-bot/node_modules/nan
92 silly refresh-package-json /home/dietpi/shell-bot/node_modules/pty.js
93 timing action:refresh-package-json Completed in 143ms
94 silly doParallel preinstall 3
95 silly preinstall extend@1.2.1
96 info lifecycle extend@1.2.1~preinstall: extend@1.2.1
97 silly preinstall nan@2.3.5
98 info lifecycle nan@2.3.5~preinstall: nan@2.3.5
99 silly preinstall pty.js@0.3.1
100 info lifecycle pty.js@0.3.1~preinstall: pty.js@0.3.1
101 timing audit submit Completed in 958ms
102 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 952ms
103 timing audit body Completed in 4ms
104 timing action:preinstall Completed in 18ms
105 silly doSerial build 24
106 silly build extend@1.2.1
107 info linkStuff extend@1.2.1
108 silly linkStuff extend@1.2.1 has /home/dietpi/shell-bot/node_modules as its parent node_modules
109 silly build nan@2.3.5
110 info linkStuff nan@2.3.5
111 silly linkStuff nan@2.3.5 has /home/dietpi/shell-bot/node_modules as its parent node_modules
112 silly build pty.js@0.3.1
113 info linkStuff pty.js@0.3.1
114 silly linkStuff pty.js@0.3.1 has /home/dietpi/shell-bot/node_modules as its parent node_modules
115 timing action:build Completed in 14ms
116 silly doSerial global-link 24
117 silly doParallel update-linked 0
118 silly doSerial install 24
119 silly install extend@1.2.1
120 info lifecycle extend@1.2.1~install: extend@1.2.1
121 silly install nan@2.3.5
122 info lifecycle nan@2.3.5~install: nan@2.3.5
123 silly install pty.js@0.3.1
124 info lifecycle pty.js@0.3.1~install: pty.js@0.3.1
125 verbose lifecycle pty.js@0.3.1~install: unsafe-perm in lifecycle true
126 verbose lifecycle pty.js@0.3.1~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/dietpi/shell-bot/node_modules/pty.js/node_modules/.bin:/home/dietpi/shell-bot/node_modules/.bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
127 verbose lifecycle pty.js@0.3.1~install: CWD: /home/dietpi/shell-bot/node_modules/pty.js
128 silly lifecycle pty.js@0.3.1~install: Args: [ '-c', 'node-gyp rebuild' ]
129 silly lifecycle pty.js@0.3.1~install: Returned: code: 1  signal: null
130 info lifecycle pty.js@0.3.1~install: Failed to exec install script
131 timing action:install Completed in 10489ms
132 verbose unlock done using /home/dietpi/.npm/_locks/staging-6c46c94766d3a652.lock for /home/dietpi/shell-bot/node_modules/.staging
133 timing stage:rollbackFailedOptional Completed in 155ms
134 timing stage:runTopLevelLifecycles Completed in 15438ms
135 silly saveTree shell-bot@0.0.1
135 silly saveTree ├─┬ botgram@2.2.0
135 silly saveTree │ ├── escape-html@1.0.3
135 silly saveTree │ ├─┬ form-data@2.3.3
135 silly saveTree │ │ ├── asynckit@0.4.0
135 silly saveTree │ │ ├─┬ combined-stream@1.0.7
135 silly saveTree │ │ │ └── delayed-stream@1.0.0
135 silly saveTree │ │ └─┬ mime-types@2.1.21
135 silly saveTree │ │   └── mime-db@1.37.0
135 silly saveTree │ └─┬ minimatch@3.0.4
135 silly saveTree │   └─┬ brace-expansion@1.1.11
135 silly saveTree │     ├── balanced-match@1.0.0
135 silly saveTree │     └── concat-map@0.0.1
135 silly saveTree ├── escape-html@1.0.3
135 silly saveTree ├── mime@1.6.0
135 silly saveTree ├── node-uuid@1.4.8
135 silly saveTree ├─┬ pty.js@0.3.1
135 silly saveTree │ ├── extend@1.2.1
135 silly saveTree │ └── nan@2.3.5
135 silly saveTree └── terminal.js@1.0.9
136 verbose stack Error: pty.js@0.3.1 install: `node-gyp rebuild`
136 verbose stack Exit status 1
136 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
136 verbose stack     at EventEmitter.emit (events.js:197:13)
136 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
136 verbose stack     at ChildProcess.emit (events.js:197:13)
136 verbose stack     at maybeClose (internal/child_process.js:978:16)
136 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
137 verbose pkgid pty.js@0.3.1
138 verbose cwd /home/dietpi/shell-bot
139 verbose Linux 4.14.79-v7+
140 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
141 verbose node v11.9.0
142 verbose npm  v6.5.0
143 error code ELIFECYCLE
144 error errno 1
145 error pty.js@0.3.1 install: `node-gyp rebuild`
145 error Exit status 1
146 error Failed at the pty.js@0.3.1 install script.
146 error This is probably not a problem with npm. There is likely additional logging output above.
147 verbose exit [ 1, true ]
mildsunrise commented 5 years ago

Yes, this project is still supported. It seems pty.js (a dependency) is failing to install. Try npm install pty.js and send both the full output and the debug log. Right now I only see the compilation is failing, but not exactly why.

hrvstr commented 5 years ago

Okay here is the terminal output for npm install pty.js

I also tried updating to Node.js 10.15.1 LTS directly from the website. I had it installed via package-manager before. Didn't seem to change anything.

dietpi@DietPi:~/shell-bot$ npm install pty.js

> pty.js@0.3.1 install /home/dietpi/shell-bot/node_modules/pty.js
> node-gyp rebuild

make: Entering directory '/home/dietpi/shell-bot/node_modules/pty.js/build'
  CXX(target) Release/obj.target/pty/src/unix/pty.o
In file included from ../../nan/nan.h:190:0,
                 from ../src/unix/pty.cc:20:
../../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:88:15: error: ‘class v8::Object’ has no member named ‘ForceSet’
   return obj->ForceSet(GetCurrentContext(), key, value, attribs);
               ^~~~~~~~
In file included from ../../nan/nan_new.h:189:0,
                 from ../../nan/nan.h:196,
                 from ../src/unix/pty.cc:20:
../../nan/nan_implementation_12_inl.h: In static member function ‘static Nan::imp::FactoryBase<v8::StringObject>::return_t Nan::imp::Factory<v8::StringObject>::New(v8::Local<v8::String>)’:
../../nan/nan_implementation_12_inl.h:345:37: warning: ‘static v8::Local<v8::Value> v8::StringObject::New(v8::Local<v8::String>)’ is deprecated: Use Isolate* version [-Wdeprecated-declarations]
   return v8::StringObject::New(value).As<v8::StringObject>();
                                     ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:5242:37: note: declared here
                 static Local<Value> New(Local<String> value));
                                     ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:817:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, func, argc, argv);
                                                            ^
In file included from ../../nan/nan.h:47:0,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:831:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, symbol, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:47:0,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:165:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’:
../../nan/nan.h:845:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
         v8::Isolate::GetCurrent(), target, method, argc, argv);
                                                              ^
In file included from ../../nan/nan.h:47:0,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:158:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In constructor ‘Nan::Utf8String::Utf8String(v8::Local<v8::Value>)’:
../../nan/nan.h:890:53: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version -Wdeprecated-declarations]
       v8::Local<v8::String> string = from->ToString();
                                                     ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h:900:74: warning: ‘int v8::String::WriteUtf8(char*, int, int*, int) const’ is deprecated: Use Isolate* version [-Wdeprecated-declarations]
         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
                                                                          ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2754:21: note: declared here
                 int WriteUtf8(char* buffer, int length = -1,
                     ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
In file included from ../src/unix/pty.cc:20:0:
../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’:
../../nan/nan.h:1463:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations]
     ));
     ^
In file included from ../../nan/nan.h:47:0,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:172:50: note: declared here
                 NODE_EXTERN v8::Local<v8::Value> MakeCallback(
                                                  ^
/home/dietpi/.node-gyp/11.9.0/include/node/node.h:91:42: note: in definition of macro ‘NODE_DEPRECATED’
     __attribute__((deprecated(message))) declarator
                                          ^~~~~~~~~~
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyFork(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:164:44: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   String::Utf8Value file(info[0]->ToString());
                                            ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
../src/unix/pty.cc:164:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   String::Utf8Value file(info[0]->ToString());
                                             ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2992:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:175:70: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     String::Utf8Value arg(argv_->Get(Nan::New<Integer>(i))->ToString());
                                                                      ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
../src/unix/pty.cc:175:71: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
     String::Utf8Value arg(argv_->Get(Nan::New<Integer>(i))->ToString());
                                                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2992:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:186:70: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
     String::Utf8Value pair(env_->Get(Nan::New<Integer>(i))->ToString());
                                                                      ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
../src/unix/pty.cc:186:71: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
     String::Utf8Value pair(env_->Get(Nan::New<Integer>(i))->ToString());
                                                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2992:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:191:44: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   String::Utf8Value cwd_(info[3]->ToString());
                                            ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
../src/unix/pty.cc:191:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   String::Utf8Value cwd_(info[3]->ToString());
                                             ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2992:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:196:39: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   winp.ws_col = info[4]->IntegerValue();
                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:197:39: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   winp.ws_row = info[5]->IntegerValue();
                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:202:35: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int uid = info[6]->IntegerValue();
                                   ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:203:35: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int gid = info[7]->IntegerValue();
                                   ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyOpen(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:288:39: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   winp.ws_col = info[0]->IntegerValue();
                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:289:39: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   winp.ws_row = info[1]->IntegerValue();
                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyResize(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:339:34: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->IntegerValue();
                                  ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:342:39: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   winp.ws_col = info[1]->IntegerValue();
                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:343:39: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   winp.ws_row = info[2]->IntegerValue();
                                       ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc: In function ‘Nan::NAN_METHOD_RETURN_TYPE PtyGetProc(Nan::NAN_METHOD_ARGS_TYPE)’:
../src/unix/pty.cc:369:34: warning: ‘int64_t v8::Value::IntegerValue() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->IntegerValue();
                                  ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2570:46: note: declared here
   V8_DEPRECATED("Use maybe version", int64_t IntegerValue() const);
                                              ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
../src/unix/pty.cc:371:44: warning: ‘v8::Local<v8::String> v8::Value::ToString() const’ is deprecated: Use maybe version [-Wdeprecated-declarations]
   String::Utf8Value tty_(info[1]->ToString());
                                            ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:10248:15: note: declared here
 Local<String> Value::ToString() const {
               ^~~~~
../src/unix/pty.cc:371:45: warning: ‘v8::String::Utf8Value::Utf8Value(v8::Local<v8::Value>)’ is deprecated: Use Isolate version [-Wdeprecated-declarations]
   String::Utf8Value tty_(info[1]->ToString());
                                             ^
In file included from /home/dietpi/.node-gyp/11.9.0/include/node/v8.h:26:0,
                 from /home/dietpi/.node-gyp/11.9.0/include/node/node.h:63,
                 from ../../nan/nan.h:47,
                 from ../src/unix/pty.cc:20:
/home/dietpi/.node-gyp/11.9.0/include/node/v8.h:2992:28: note: declared here
                   explicit Utf8Value(Local<v8::Value> obj));
                            ^
/home/dietpi/.node-gyp/11.9.0/include/node/v8config.h:326:3: note: in definition of macro ‘V8_DEPRECATED’
   declarator __attribute__((deprecated(message)))
   ^~~~~~~~~~
pty.target.mk:99: recipe for target 'Release/obj.target/pty/src/unix/pty.o' failed
make: *** [Release/obj.target/pty/src/unix/pty.o] Error 1
make: Leaving directory '/home/dietpi/shell-bot/node_modules/pty.js/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:262:23)
gyp ERR! stack     at ChildProcess.emit (events.js:197:13)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:254:12)
gyp ERR! System Linux 4.14.79-v7+
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 /home/dietpi/shell-bot/node_modules/pty.js
gyp ERR! node -v v11.9.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok 
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pty.js@0.3.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the pty.js@0.3.1 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/dietpi/.npm/_logs/2019-02-05T09_04_25_915Z-debug.log

And the debug log:

0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'install',
1 verbose cli   'pty.js' ]
2 info using npm@6.5.0
3 info using node@v11.9.0
4 verbose npm-session 3a881f6e59473294
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 http fetch GET 304 https://registry.npmjs.org/pty.js 783ms (from cache)
8 silly pacote range manifest for pty.js@0.3 fetched in 882ms
9 timing stage:loadCurrentTree Completed in 2773ms
10 silly install loadIdealTree
11 silly install cloneCurrentTreeToIdealTree
12 timing stage:loadIdealTree:cloneCurrentTree Completed in 7ms
13 silly install loadShrinkwrap
14 timing stage:loadIdealTree:loadShrinkwrap Completed in 67ms
15 silly install loadAllDepsIntoIdealTree
16 silly resolveWithNewModule pty.js@0.3.1 checking installable status
17 http fetch GET 304 https://registry.npmjs.org/extend 185ms (from cache)
18 silly pacote range manifest for extend@~1.2.1 fetched in 200ms
19 silly resolveWithNewModule extend@1.2.1 checking installable status
20 http fetch GET 304 https://registry.npmjs.org/nan 270ms (from cache)
21 silly pacote version manifest for nan@2.3.5 fetched in 305ms
22 silly resolveWithNewModule nan@2.3.5 checking installable status
23 timing stage:loadIdealTree:loadAllDepsIntoIdealTree Completed in 516ms
24 timing stage:loadIdealTree Completed in 666ms
25 silly currentTree shell-bot@0.0.1
25 silly currentTree ├── asynckit@0.4.0
25 silly currentTree ├── balanced-match@1.0.0
25 silly currentTree ├── botgram@2.2.0
25 silly currentTree ├── brace-expansion@1.1.11
25 silly currentTree ├── combined-stream@1.0.7
25 silly currentTree ├── concat-map@0.0.1
25 silly currentTree ├── delayed-stream@1.0.0
25 silly currentTree ├── escape-html@1.0.3
25 silly currentTree ├── form-data@2.3.3
25 silly currentTree ├── mime-db@1.37.0
25 silly currentTree ├── mime-types@2.1.21
25 silly currentTree ├── mime@1.6.0
25 silly currentTree ├── minimatch@3.0.4
25 silly currentTree ├── node-uuid@1.4.8
25 silly currentTree └── terminal.js@1.0.9
26 silly idealTree shell-bot@0.0.1
26 silly idealTree ├── asynckit@0.4.0
26 silly idealTree ├── balanced-match@1.0.0
26 silly idealTree ├── botgram@2.2.0
26 silly idealTree ├── brace-expansion@1.1.11
26 silly idealTree ├── combined-stream@1.0.7
26 silly idealTree ├── concat-map@0.0.1
26 silly idealTree ├── delayed-stream@1.0.0
26 silly idealTree ├── escape-html@1.0.3
26 silly idealTree ├── extend@1.2.1
26 silly idealTree ├── form-data@2.3.3
26 silly idealTree ├── mime-db@1.37.0
26 silly idealTree ├── mime-types@2.1.21
26 silly idealTree ├── mime@1.6.0
26 silly idealTree ├── minimatch@3.0.4
26 silly idealTree ├── nan@2.3.5
26 silly idealTree ├── node-uuid@1.4.8
26 silly idealTree ├── pty.js@0.3.1
26 silly idealTree └── terminal.js@1.0.9
27 silly install generateActionsToTake
28 timing stage:generateActionsToTake Completed in 60ms
29 silly diffTrees action count 3
30 silly diffTrees add extend@1.2.1
31 silly diffTrees add nan@2.3.5
32 silly diffTrees add pty.js@0.3.1
33 silly decomposeActions action count 24
34 silly decomposeActions fetch extend@1.2.1
35 silly decomposeActions extract extend@1.2.1
36 silly decomposeActions preinstall extend@1.2.1
37 silly decomposeActions build extend@1.2.1
38 silly decomposeActions install extend@1.2.1
39 silly decomposeActions postinstall extend@1.2.1
40 silly decomposeActions finalize extend@1.2.1
41 silly decomposeActions refresh-package-json extend@1.2.1
42 silly decomposeActions fetch nan@2.3.5
43 silly decomposeActions extract nan@2.3.5
44 silly decomposeActions preinstall nan@2.3.5
45 silly decomposeActions build nan@2.3.5
46 silly decomposeActions install nan@2.3.5
47 silly decomposeActions postinstall nan@2.3.5
48 silly decomposeActions finalize nan@2.3.5
49 silly decomposeActions refresh-package-json nan@2.3.5
50 silly decomposeActions fetch pty.js@0.3.1
51 silly decomposeActions extract pty.js@0.3.1
52 silly decomposeActions preinstall pty.js@0.3.1
53 silly decomposeActions build pty.js@0.3.1
54 silly decomposeActions install pty.js@0.3.1
55 silly decomposeActions postinstall pty.js@0.3.1
56 silly decomposeActions finalize pty.js@0.3.1
57 silly decomposeActions refresh-package-json pty.js@0.3.1
58 silly install executeActions
59 silly doSerial global-install 24
60 verbose correctMkdir /home/dietpi/.npm/_locks correctMkdir not in flight; initializing
61 timing audit compress Completed in 26ms
62 info audit Submitting payload of 1357bytes
63 verbose lock using /home/dietpi/.npm/_locks/staging-6c46c94766d3a652.lock for /home/dietpi/shell-bot/node_modules/.staging
64 silly doParallel extract 3
65 silly extract extend@1.2.1
66 silly extract nan@2.3.5
67 silly extract pty.js@0.3.1
68 silly tarball trying extend@~1.2.1 by hash: sha1-oPX9bPyDpf5J72mNYOyKYk3UV2w=
69 silly tarball trying nan@2.3.5 by hash: sha1-gioNwmYpDOTNOhIoLKPn42Rmigg=
70 silly tarball trying pty.js@0.3 by hash: sha1-gfW+0zLW5eeraFaI0boDc0ENUbU=
71 silly extract extend@~1.2.1 extracted to /home/dietpi/shell-bot/node_modules/.staging/extend-b56b0ba3 (410ms)
72 silly extract pty.js@0.3 extracted to /home/dietpi/shell-bot/node_modules/.staging/pty.js-3c4b29e4 (453ms)
73 silly extract nan@2.3.5 extracted to /home/dietpi/shell-bot/node_modules/.staging/nan-31150168 (641ms)
74 timing action:extract Completed in 673ms
75 silly doReverseSerial unbuild 24
76 silly doSerial remove 24
77 silly doSerial move 24
78 silly doSerial finalize 24
79 silly finalize /home/dietpi/shell-bot/node_modules/extend
80 silly finalize /home/dietpi/shell-bot/node_modules/nan
81 silly finalize /home/dietpi/shell-bot/node_modules/pty.js
82 timing action:finalize Completed in 48ms
83 silly doParallel refresh-package-json 3
84 silly refresh-package-json /home/dietpi/shell-bot/node_modules/extend
85 silly refresh-package-json /home/dietpi/shell-bot/node_modules/nan
86 silly refresh-package-json /home/dietpi/shell-bot/node_modules/pty.js
87 timing action:refresh-package-json Completed in 109ms
88 silly doParallel preinstall 3
89 silly preinstall extend@1.2.1
90 info lifecycle extend@1.2.1~preinstall: extend@1.2.1
91 silly preinstall nan@2.3.5
92 info lifecycle nan@2.3.5~preinstall: nan@2.3.5
93 silly preinstall pty.js@0.3.1
94 info lifecycle pty.js@0.3.1~preinstall: pty.js@0.3.1
95 timing action:preinstall Completed in 14ms
96 silly doSerial build 24
97 silly build extend@1.2.1
98 info linkStuff extend@1.2.1
99 silly linkStuff extend@1.2.1 has /home/dietpi/shell-bot/node_modules as its parent node_modules
100 silly build nan@2.3.5
101 info linkStuff nan@2.3.5
102 silly linkStuff nan@2.3.5 has /home/dietpi/shell-bot/node_modules as its parent node_modules
103 silly build pty.js@0.3.1
104 info linkStuff pty.js@0.3.1
105 silly linkStuff pty.js@0.3.1 has /home/dietpi/shell-bot/node_modules as its parent node_modules
106 timing action:build Completed in 13ms
107 silly doSerial global-link 24
108 silly doParallel update-linked 0
109 silly doSerial install 24
110 silly install extend@1.2.1
111 info lifecycle extend@1.2.1~install: extend@1.2.1
112 silly install nan@2.3.5
113 info lifecycle nan@2.3.5~install: nan@2.3.5
114 silly install pty.js@0.3.1
115 info lifecycle pty.js@0.3.1~install: pty.js@0.3.1
116 verbose lifecycle pty.js@0.3.1~install: unsafe-perm in lifecycle true
117 verbose lifecycle pty.js@0.3.1~install: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/dietpi/shell-bot/node_modules/pty.js/node_modules/.bin:/home/dietpi/shell-bot/node_modules/.bin:/usr/local/lib/nodejs/node-/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games
118 verbose lifecycle pty.js@0.3.1~install: CWD: /home/dietpi/shell-bot/node_modules/pty.js
119 silly lifecycle pty.js@0.3.1~install: Args: [ '-c', 'node-gyp rebuild' ]
120 timing audit submit Completed in 1250ms
121 http fetch POST 200 https://registry.npmjs.org/-/npm/v1/security/audits/quick 1245ms
122 timing audit body Completed in 3ms
123 silly lifecycle pty.js@0.3.1~install: Returned: code: 1  signal: null
124 info lifecycle pty.js@0.3.1~install: Failed to exec install script
125 timing action:install Completed in 10090ms
126 verbose unlock done using /home/dietpi/.npm/_locks/staging-6c46c94766d3a652.lock for /home/dietpi/shell-bot/node_modules/.staging
127 timing stage:rollbackFailedOptional Completed in 144ms
128 timing stage:runTopLevelLifecycles Completed in 15003ms
129 silly saveTree shell-bot@0.0.1
129 silly saveTree ├─┬ botgram@2.2.0
129 silly saveTree │ ├── escape-html@1.0.3
129 silly saveTree │ ├─┬ form-data@2.3.3
129 silly saveTree │ │ ├── asynckit@0.4.0
129 silly saveTree │ │ ├─┬ combined-stream@1.0.7
129 silly saveTree │ │ │ └── delayed-stream@1.0.0
129 silly saveTree │ │ └─┬ mime-types@2.1.21
129 silly saveTree │ │   └── mime-db@1.37.0
129 silly saveTree │ └─┬ minimatch@3.0.4
129 silly saveTree │   └─┬ brace-expansion@1.1.11
129 silly saveTree │     ├── balanced-match@1.0.0
129 silly saveTree │     └── concat-map@0.0.1
129 silly saveTree ├── escape-html@1.0.3
129 silly saveTree ├── mime@1.6.0
129 silly saveTree ├── node-uuid@1.4.8
129 silly saveTree ├─┬ pty.js@0.3.1
129 silly saveTree │ ├── extend@1.2.1
129 silly saveTree │ └── nan@2.3.5
129 silly saveTree └── terminal.js@1.0.9
130 verbose stack Error: pty.js@0.3.1 install: `node-gyp rebuild`
130 verbose stack Exit status 1
130 verbose stack     at EventEmitter.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
130 verbose stack     at EventEmitter.emit (events.js:197:13)
130 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
130 verbose stack     at ChildProcess.emit (events.js:197:13)
130 verbose stack     at maybeClose (internal/child_process.js:978:16)
130 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:265:5)
131 verbose pkgid pty.js@0.3.1
132 verbose cwd /home/dietpi/shell-bot
133 verbose Linux 4.14.79-v7+
134 verbose argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "pty.js"
135 verbose node v11.9.0
136 verbose npm  v6.5.0
137 error code ELIFECYCLE
138 error errno 1
139 error pty.js@0.3.1 install: `node-gyp rebuild`
139 error Exit status 1
140 error Failed at the pty.js@0.3.1 install script.
140 error This is probably not a problem with npm. There is likely additional logging output above.
141 verbose exit [ 1, true ]
hrvstr commented 5 years ago

Just did some more experimenting and found that it builds without errors when I use NVM and Node v6.16.0 (npm v3.10.10).

Is it a bad idea to run it with an older version?

mildsunrise commented 5 years ago

Okay, you're hitting chjj/pty.js#195. It's due to pty.js no longer being maintained since about 2 years (I hadn't noticed). According to the issue, it should work on (at least) Node v8.

I didn't find any active forks of pty.js, except maybe https://github.com/iiegor/ptyw.js, so I'll see what I can do. Maybe I'll start one, but I don't have much free time these days...

mildsunrise commented 5 years ago

Also, it isn't a bad idea to run it with an older version. It would be nice to get it running on newer versions as well, though.

hrvstr commented 5 years ago

Okay, I upgraded to Node 8.15 like described in the issue and it seems to be working fine. While troubleshooting I found this fork from Microsoft: node-pty Not sure how one would go about swapping modules in the dependencies.

Anyways, thanks a lot for your help!

mildsunrise commented 5 years ago

I forgot to give feedback on this, but shell-bot now uses node-pty :)

hrvstr commented 5 years ago

Awesome!👍 Just updated to Node v10.15.3 and everything went fine!