This week I tried upgrade the "HTTP server with ngrok from my local host" to "HTTPS server host on my VPS server" and create database and data log for my project.

Here is the code I used to create the database.

var https = require('https');
var fs = require('fs');

var options = {
  key: fs.readFileSync('my-key.pem'),
  cert: fs.readFileSync('my-cert.pem')
};

app.use(express.static("public"));

const http = https.createServer(options, app);

const port = process.env.PORT || 8080;

const server = http.listen(port);

/////Database////////
var usermessages = [];
var Datastore = require('nedb');
var db = new Datastore({ filename: "feizaiData.db", autoload: true });

db.find({}, function (err, docs) {
  for (let i = 0; i < docs.length; i++) {
    usermessages.push(docs[i].message);
  }
});

let clients = {};

main();

function main() {
  setupSocketServer();

  setInterval(function () {
    io.sockets.emit("userPositions", clients);
  }, 100);
}

function setupSocketServer() {

  io.on("connection", (client) => {
    // Get Date
    let today = new Date();
    let date = today.getFullYear() + '-' + (today.getMonth() + 1) + '-' + today.getDate() + ' ' + today.getHours() + ":" + today.getMinutes() + ":" + today.getSeconds();

    let datalog =
      "User " +
      client.id +
      " connected, there are " +
      io.engine.clientsCount +
      " clients connected" + " at " + date;

    console.log(datalog);

    db.insert({ "message": datalog }, function (err, newDocs) {
      console.log("err:" + err);
      console.log("newDocs:" + newDocs);
    });

}

When I run that from local host, it worked and gave me a database like below.

feizaiData.db

{"message":"User vxg2lzfNk3aF7gL5AAAB connected, there are 1 clients connected at 2021-4-22 1:2:55","_id":"6TVYv3I5axEIdQLa"}
{"message":"User qyzGqDcpWJRLpJ4iAAAB connected, there are 1 clients connectedat 2021-4-22 1:2:13","_id":"TmRWDRMy5q95bhma"}
{"message":"User spsmAsxS7i6wH9LxAAAD connected, there are 1 clients connected at 2021-4-22 1:2:59","_id":"i3wN05q9ZOjmzXF0"}
{"message":"User S-6EH0buxhjWjZhRAAAA connected, there are 1 clients connected at 2021-4-27 11:47:49","_id":"nN0QNBVioYj7dUZY"}
{"message":"User zCH9HkNRFtSfRmmgAAAB connected, there are 2 clients connected at 2021-4-27 11:47:50","_id":"cpufRsEy0oBdR1tT"}
{"message":"User 8ud54tjYL_9uq1XDAAAC connected, there are 3 clients connected at 2021-4-27 11:47:54","_id":"YuWgC4iufKrN0Zka"}
{"message":"User ewosrFiU-kIUB26IAAAD connected, there are 4 clients connected at 2021-4-27 11:47:58","_id":"PlnmR68A4sX1kFNC"}
{"message":"User sMjlIJ0d2zDpGQwRAAAE connected, there are 5 clients connected at 2021-4-27 11:48:6","_id":"rlGq1btJJxDflFjx"}
{"message":"User yKMpyVyRa0XCsoBTAAAF connected, there are 6 clients connected at 2021-4-27 11:48:16","_id":"jNGYL13EbXsp47SS"}
{"message":"User 5ZG_1uExAYFycbVSAAAG connected, there are 4 clients connected at 2021-4-27 11:48:24","_id":"FwIfmRIn1f2JeWSA"}
{"message":"User 82EdyxLkTogWV4raAAAH connected, there are 4 clients connected at 2021-4-27 11:48:32","_id":"ZfHVcuGt7vXQi4Iw"}
{"message":"User 3YMMUgLJB5YbSmpPAAAI connected, there are 4 clients connected at 2021-4-27 11:48:39","_id":"nofYU8OXBPiOCTjJ"}
{"message":"User 5Lnd_DoXpIMcJfiPAAAJ connected, there are 4 clients connected at 2021-4-27 11:48:46","_id":"X4YUBkMJ7BMneox9"}
{"message":"User y24WBUyrGhg22pETAAAK connected, there are 4 clients connected at 2021-4-27 11:48:59","_id":"EElTjrjpmPyzBYr6"}
{"message":"User FJrqQlQOldw1k2BzAAAL connected, there are 5 clients connected at 2021-4-27 11:49:0","_id":"V0zIQ1osAS0iietN"}
{"message":"User uEjhaRv73exNgZsQAAAM connected, there are 5 clients connected at 2021-4-27 11:49:3","_id":"68NXSbw5O3yQLTh4"}
{"message":"User uhxYFC5Ujl96yObZAAAN connected, there are 6 clients connected at 2021-4-27 11:49:7","_id":"T7fA7dbRIFDhawZA"}
{"message":"User HKspEBKzrrUVrZ1jAAAO connected, there are 6 clients connected at 2021-4-27 11:49:14","_id":"Efj7ps6EKgzmhj9J"}
{"message":"User vAMZwcacygqaCj85AAAP connected, there are 6 clients connected at 2021-4-27 11:49:21","_id":"eBWrpE3T1Fix4F7U"}
{"message":"User SeB51IPEzLt4yPHxAAAQ connected, there are 7 clients connected at 2021-4-27 11:49:28","_id":"ZOkeriKCgt10CMpR"}
{"message":"User tFZQKTWqKrw_QobJAAAR connected, there are 4 clients connected at 2021-4-27 11:49:39","_id":"uUUEyD0NbobunjLK"}
{"message":"User L6Rc1pkAcRsGkiiiAAAS connected, there are 4 clients connected at 2021-4-27 11:49:46","_id":"WSFx9OfZvx6eMxSX"}
{"message":"User P_ORKCb1QhfgVgqAAAAT connected, there are 4 clients connected at 2021-4-27 11:49:55","_id":"RVkRXoUA8b2AYvSe"}
{"message":"User BwUnHZdyfc5wDD0cAAAU connected, there are 4 clients connected at 2021-4-27 11:50:2","_id":"4gqijs3VjTnGs232"}
{"message":"User 7fgjhQrXiJhlwrNqAAAV connected, there are 5 clients connected at 2021-4-27 11:50:9","_id":"7WKCycezZN3m3v7q"}
{"message":"User kn7J519p3hmjudGKAAAW connected, there are 1 clients connected at 2021-4-27 11:50:40","_id":"X2p4yUF5vX3Vmq16"}
{"message":"User eHqI66ngutU3CDGoAAAX connected, there are 2 clients connected at 2021-4-27 11:50:41","_id":"cUJpiL8RUcDFt3Pb"}
{"message":"User 6-WF6WRewsPOSAAAAAAY connected, there are 3 clients connected at 2021-4-27 11:50:43","_id":"htg7qWuKa31E6cwy"}
{"message":"User mm4Zk5KJ8m6zlsGIAAAZ connected, there are 4 clients connected at 2021-4-27 11:50:46","_id":"hqtPfSkZ8dZKOZIL"}
{"message":"User VtfkNZGu9RyJnQ7IAAAa connected, there are 5 clients connected at 2021-4-27 11:50:54","_id":"LwfmIcfo4SRXWMIy"}
{"message":"User 1ytggWbjYftO1oV1AAAb connected, there are 6 clients connected at 2021-4-27 11:51:1","_id":"Hg5QQBTytKR1GoTv"}
{"message":"User D1bNtyC-hkUDR2ECAAAc connected, there are 7 clients connected at 2021-4-27 11:51:9","_id":"MQZZVUZk5H19fMOy"}
{"message":"User 0Db_kiJrNreC785aAAAd connected, there are 4 clients connected at 2021-4-27 11:51:18","_id":"hiYUXh3KRQe7Wt7J"}
{"message":"User Pb6N3kydVwsyiADxAAAe connected, there are 4 clients connected at 2021-4-27 11:51:26","_id":"jqhHD10bOF69SUfj"}

It gives me the information every time when new users connected, about their socket_id, the time they get connected, how many users are connected at the same time.

When I tried to upload the project to the VPS, some errors came. I uploaded everything except the node modules, and did "npm install". Unfortunately it didn't give me all the modules but throw out errors.

npm-debug.log

0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
2 info using npm@3.5.2
3 info using node@v8.10.0
4 silly loadCurrentTree Starting
5 silly install loadCurrentTree
6 silly install readLocalPackageData
7 silly install normalizeTree
8 silly loadCurrentTree Finishing
9 silly loadIdealTree Starting
10 silly install loadIdealTree
11 silly cloneCurrentTree Starting
12 silly install cloneCurrentTreeToIdealTree
13 silly cloneCurrentTree Finishing
14 silly loadShrinkwrap Starting
15 silly install loadShrinkwrap
16 silly loadShrinkwrap Finishing
17 silly loadAllDepsIntoIdealTree Starting
18 silly install loadAllDepsIntoIdealTree
19 silly fetchNamedPackageData body-parser
20 silly mapToRegistry name body-parser
21 silly mapToRegistry using default registry
22 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
23 silly mapToRegistry uri [<https://registry.npmjs.org/body-parser>](<https://registry.npmjs.org/body-parser>)
24 silly fetchNamedPackageData express
25 silly mapToRegistry name express
26 silly mapToRegistry using default registry
27 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
28 silly mapToRegistry uri [<https://registry.npmjs.org/express>](<https://registry.npmjs.org/express>)
29 silly fetchNamedPackageData fs
30 silly mapToRegistry name fs
31 silly mapToRegistry using default registry
32 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
33 silly mapToRegistry uri [<https://registry.npmjs.org/fs>](<https://registry.npmjs.org/fs>)
34 silly fetchNamedPackageData https
35 silly mapToRegistry name https
36 silly mapToRegistry using default registry
37 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
38 silly mapToRegistry uri [<https://registry.npmjs.org/https>](<https://registry.npmjs.org/https>)
39 silly fetchNamedPackageData nedb
40 silly mapToRegistry name nedb
41 silly mapToRegistry using default registry
42 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
43 silly mapToRegistry uri [<https://registry.npmjs.org/nedb>](<https://registry.npmjs.org/nedb>)
44 silly fetchNamedPackageData ngrok
45 silly mapToRegistry name ngrok
46 silly mapToRegistry using default registry
47 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
48 silly mapToRegistry uri [<https://registry.npmjs.org/ngrok>](<https://registry.npmjs.org/ngrok>)
49 silly fetchNamedPackageData [socket.io](<http://socket.io/>)
50 silly mapToRegistry name [socket.io](<http://socket.io/>)
51 silly mapToRegistry using default registry
52 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
53 silly mapToRegistry uri [<https://registry.npmjs.org/socket.io>](<https://registry.npmjs.org/socket.io>)
54 verbose request uri [<https://registry.npmjs.org/fs>](<https://registry.npmjs.org/fs>)
55 verbose request no auth needed
56 info attempt registry request try #1 at 10:19:52 AM
57 verbose request id 7e4e0d54af575d74
58 verbose etag W/"d801cb3693d25506bee4caa99db88cee"
59 verbose lastModified Sun, 03 Jan 2021 21:55:17 GMT
60 http request GET [<https://registry.npmjs.org/fs>](<https://registry.npmjs.org/fs>)
61 verbose request uri [<https://registry.npmjs.org/https>](<https://registry.npmjs.org/https>)
62 verbose request no auth needed
63 info attempt registry request try #1 at 10:19:52 AM
64 verbose etag W/"b18f4288e250c018df274726a5ceae69"
65 verbose lastModified Sun, 27 May 2018 04:05:13 GMT
66 http request GET [<https://registry.npmjs.org/https>](<https://registry.npmjs.org/https>)
67 verbose request uri [<https://registry.npmjs.org/body-parser>](<https://registry.npmjs.org/body-parser>)
68 verbose request no auth needed
69 info attempt registry request try #1 at 10:19:52 AM
70 verbose etag W/"69165633b8917311c8a5b29b5aa3a438"
71 verbose lastModified Fri, 29 Nov 2019 09:32:45 GMT
72 http request GET [<https://registry.npmjs.org/body-parser>](<https://registry.npmjs.org/body-parser>)
73 verbose request uri [<https://registry.npmjs.org/ngrok>](<https://registry.npmjs.org/ngrok>)
74 verbose request no auth needed
75 info attempt registry request try #1 at 10:19:52 AM
76 verbose etag W/"dc9c4319c88cc875e49caf183821a3ab"
77 verbose lastModified Mon, 05 Apr 2021 01:10:00 GMT
78 http request GET [<https://registry.npmjs.org/ngrok>](<https://registry.npmjs.org/ngrok>)
79 verbose request uri [<https://registry.npmjs.org/nedb>](<https://registry.npmjs.org/nedb>)
80 verbose request no auth needed
81 info attempt registry request try #1 at 10:19:52 AM
82 verbose etag W/"2f21c8174e0c2618a4868131d43be62d"
83 verbose lastModified Sun, 27 May 2018 09:15:26 GMT
84 http request GET [<https://registry.npmjs.org/nedb>](<https://registry.npmjs.org/nedb>)
85 verbose request uri [<https://registry.npmjs.org/socket.io>](<https://registry.npmjs.org/socket.io>)
86 verbose request no auth needed
87 info attempt registry request try #1 at 10:19:52 AM
88 verbose etag W/"6f020094201402753a231b29ed56644c"
89 verbose lastModified Thu, 15 Apr 2021 01:19:03 GMT
90 http request GET [<https://registry.npmjs.org/socket.io>](<https://registry.npmjs.org/socket.io>)
91 verbose request uri [<https://registry.npmjs.org/express>](<https://registry.npmjs.org/express>)
92 verbose request no auth needed
93 info attempt registry request try #1 at 10:19:52 AM
94 verbose etag W/"24a7bab87ba5ec2c420aa4b9fbd8f2b9"
95 verbose lastModified Sun, 28 Mar 2021 02:24:26 GMT
96 http request GET [<https://registry.npmjs.org/express>](<https://registry.npmjs.org/express>)
97 http 304 [<https://registry.npmjs.org/https>](<https://registry.npmjs.org/https>)
98 verbose headers { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
98 verbose headers connection: 'keep-alive',
98 verbose headers 'set-cookie':
98 verbose headers [ '__cfduid=d186e50bcb2c57b2c8b7c66db6fca47d71619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
98 verbose headers 'cf-ray': '646750a47ac5e748-EWR',
98 verbose headers age: '727',
98 verbose headers 'cache-control': 'public, max-age=300',
98 verbose headers etag: '"b18f4288e250c018df274726a5ceae69"',
98 verbose headers 'last-modified': 'Sun, 27 May 2018 04:05:13 GMT',
98 verbose headers vary: 'Accept-Encoding',
98 verbose headers 'cf-cache-status': 'HIT',
98 verbose headers 'cf-request-id': '09b470bad00000e74863a86000000001',
98 verbose headers 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
98 verbose headers server: 'cloudflare' }
99 silly get cb [ 304,
99 silly get { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
99 silly get connection: 'keep-alive',
99 silly get 'set-cookie':
99 silly get [ '__cfduid=d186e50bcb2c57b2c8b7c66db6fca47d71619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
99 silly get 'cf-ray': '646750a47ac5e748-EWR',
99 silly get age: '727',
99 silly get 'cache-control': 'public, max-age=300',
99 silly get etag: '"b18f4288e250c018df274726a5ceae69"',
99 silly get 'last-modified': 'Sun, 27 May 2018 04:05:13 GMT',
99 silly get vary: 'Accept-Encoding',
99 silly get 'cf-cache-status': 'HIT',
99 silly get 'cf-request-id': '09b470bad00000e74863a86000000001',
99 silly get 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
99 silly get server: 'cloudflare' } ]
100 verbose etag [<https://registry.npmjs.org/https>](<https://registry.npmjs.org/https>) from cache
101 verbose get saving https to /root/.npm/registry.npmjs.org/https/.cache.json
102 http 304 [<https://registry.npmjs.org/body-parser>](<https://registry.npmjs.org/body-parser>)
103 verbose headers { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
103 verbose headers connection: 'keep-alive',
103 verbose headers 'set-cookie':
103 verbose headers [ '__cfduid=d4f29cd11ce21e6ccd8e731980c156c9c1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
103 verbose headers 'cf-ray': '646750a47d44159b-EWR',
103 verbose headers age: '737',
103 verbose headers 'cache-control': 'public, max-age=300',
103 verbose headers etag: '"69165633b8917311c8a5b29b5aa3a438"',
103 verbose headers 'last-modified': 'Fri, 29 Nov 2019 09:32:45 GMT',
103 verbose headers vary: 'Accept-Encoding',
103 verbose headers 'cf-cache-status': 'HIT',
103 verbose headers 'cf-request-id': '09b470bad00000159b118f0000000001',
103 verbose headers 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
103 verbose headers server: 'cloudflare' }
104 silly get cb [ 304,
104 silly get { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
104 silly get connection: 'keep-alive',
104 silly get 'set-cookie':
104 silly get [ '__cfduid=d4f29cd11ce21e6ccd8e731980c156c9c1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
104 silly get 'cf-ray': '646750a47d44159b-EWR',
104 silly get age: '737',
104 silly get 'cache-control': 'public, max-age=300',
104 silly get etag: '"69165633b8917311c8a5b29b5aa3a438"',
104 silly get 'last-modified': 'Fri, 29 Nov 2019 09:32:45 GMT',
104 silly get vary: 'Accept-Encoding',
104 silly get 'cf-cache-status': 'HIT',
104 silly get 'cf-request-id': '09b470bad00000159b118f0000000001',
104 silly get 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
104 silly get server: 'cloudflare' } ]
105 verbose etag [<https://registry.npmjs.org/body-parser>](<https://registry.npmjs.org/body-parser>) from cache
106 verbose get saving body-parser to /root/.npm/registry.npmjs.org/body-parser/.cache.json
107 http 304 [<https://registry.npmjs.org/express>](<https://registry.npmjs.org/express>)
108 verbose headers { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
108 verbose headers connection: 'keep-alive',
108 verbose headers 'set-cookie':
108 verbose headers [ '__cfduid=d0b9136c772912222f4769003e9296f3d1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
108 verbose headers 'cf-ray': '646750a48ab9eff5-EWR',
108 verbose headers age: '7037',
108 verbose headers 'cache-control': 'public, max-age=300',
108 verbose headers etag: '"24a7bab87ba5ec2c420aa4b9fbd8f2b9"',
108 verbose headers 'last-modified': 'Sun, 28 Mar 2021 02:24:26 GMT',
108 verbose headers vary: 'Accept-Encoding',
108 verbose headers 'cf-cache-status': 'HIT',
108 verbose headers 'cf-request-id': '09b470bad10000eff55bbce000000001',
108 verbose headers 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
108 verbose headers server: 'cloudflare' }
109 silly get cb [ 304,
109 silly get { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
109 silly get connection: 'keep-alive',
109 silly get 'set-cookie':
109 silly get [ '__cfduid=d0b9136c772912222f4769003e9296f3d1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
109 silly get 'cf-ray': '646750a48ab9eff5-EWR',
109 silly get age: '7037',
109 silly get 'cache-control': 'public, max-age=300',
109 silly get etag: '"24a7bab87ba5ec2c420aa4b9fbd8f2b9"',
109 silly get 'last-modified': 'Sun, 28 Mar 2021 02:24:26 GMT',
109 silly get vary: 'Accept-Encoding',
109 silly get 'cf-cache-status': 'HIT',
109 silly get 'cf-request-id': '09b470bad10000eff55bbce000000001',
109 silly get 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
109 silly get server: 'cloudflare' } ]
110 verbose etag [<https://registry.npmjs.org/express>](<https://registry.npmjs.org/express>) from cache
111 verbose get saving express to /root/.npm/registry.npmjs.org/express/.cache.json
112 http 304 [<https://registry.npmjs.org/fs>](<https://registry.npmjs.org/fs>)
113 verbose headers { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
113 verbose headers connection: 'keep-alive',
113 verbose headers 'set-cookie':
113 verbose headers [ '__cfduid=dccfedcfa4fd7376f01f36169a47891951619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
113 verbose headers 'cf-ray': '646750a47c71f059-EWR',
113 verbose headers age: '6668',
113 verbose headers 'cache-control': 'public, max-age=300',
113 verbose headers etag: '"d801cb3693d25506bee4caa99db88cee"',
113 verbose headers 'last-modified': 'Sun, 03 Jan 2021 21:55:17 GMT',
113 verbose headers vary: 'Accept-Encoding',
113 verbose headers 'cf-cache-status': 'HIT',
113 verbose headers 'cf-request-id': '09b470bacf0000f05942a95000000001',
113 verbose headers 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
113 verbose headers server: 'cloudflare' }
114 silly get cb [ 304,
114 silly get { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
114 silly get connection: 'keep-alive',
114 silly get 'set-cookie':
114 silly get [ '__cfduid=dccfedcfa4fd7376f01f36169a47891951619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
114 silly get 'cf-ray': '646750a47c71f059-EWR',
114 silly get age: '6668',
114 silly get 'cache-control': 'public, max-age=300',
114 silly get etag: '"d801cb3693d25506bee4caa99db88cee"',
114 silly get 'last-modified': 'Sun, 03 Jan 2021 21:55:17 GMT',
114 silly get vary: 'Accept-Encoding',
114 silly get 'cf-cache-status': 'HIT',
114 silly get 'cf-request-id': '09b470bacf0000f05942a95000000001',
114 silly get 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
114 silly get server: 'cloudflare' } ]
115 verbose etag [<https://registry.npmjs.org/fs>](<https://registry.npmjs.org/fs>) from cache
116 verbose get saving fs to /root/.npm/registry.npmjs.org/fs/.cache.json
117 http 304 [<https://registry.npmjs.org/socket.io>](<https://registry.npmjs.org/socket.io>)
118 verbose headers { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
118 verbose headers connection: 'keep-alive',
118 verbose headers 'set-cookie':
118 verbose headers [ '__cfduid=dad5693270adbc007d530d1ac5b92fd3a1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
118 verbose headers 'cf-ray': '646750a47d223e46-EWR',
118 verbose headers age: '1171',
118 verbose headers 'cache-control': 'public, max-age=300',
118 verbose headers etag: '"6f020094201402753a231b29ed56644c"',
118 verbose headers 'last-modified': 'Thu, 15 Apr 2021 01:19:03 GMT',
118 verbose headers vary: 'Accept-Encoding',
118 verbose headers 'cf-cache-status': 'HIT',
118 verbose headers 'cf-request-id': '09b470bad000003e46b89a4000000001',
118 verbose headers 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
118 verbose headers server: 'cloudflare' }
119 silly get cb [ 304,
119 silly get { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
119 silly get connection: 'keep-alive',
119 silly get 'set-cookie':
119 silly get [ '__cfduid=dad5693270adbc007d530d1ac5b92fd3a1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
119 silly get 'cf-ray': '646750a47d223e46-EWR',
119 silly get age: '1171',
119 silly get 'cache-control': 'public, max-age=300',
119 silly get etag: '"6f020094201402753a231b29ed56644c"',
119 silly get 'last-modified': 'Thu, 15 Apr 2021 01:19:03 GMT',
119 silly get vary: 'Accept-Encoding',
119 silly get 'cf-cache-status': 'HIT',
119 silly get 'cf-request-id': '09b470bad000003e46b89a4000000001',
119 silly get 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
119 silly get server: 'cloudflare' } ]
120 verbose etag [<https://registry.npmjs.org/socket.io>](<https://registry.npmjs.org/socket.io>) from cache
121 verbose get saving [socket.io](<http://socket.io/>) to /root/.npm/registry.npmjs.org/socket.io/.cache.json
122 http 304 [<https://registry.npmjs.org/nedb>](<https://registry.npmjs.org/nedb>)
123 verbose headers { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
123 verbose headers connection: 'keep-alive',
123 verbose headers 'set-cookie':
123 verbose headers [ '__cfduid=d3b3294d40c3982b37516ed68f856a18a1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
123 verbose headers 'cf-ray': '646750a47df0c5dc-EWR',
123 verbose headers age: '2149',
123 verbose headers 'cache-control': 'public, max-age=300',
123 verbose headers etag: '"2f21c8174e0c2618a4868131d43be62d"',
123 verbose headers 'last-modified': 'Sun, 27 May 2018 09:15:26 GMT',
123 verbose headers vary: 'Accept-Encoding',
123 verbose headers 'cf-cache-status': 'HIT',
123 verbose headers 'cf-request-id': '09b470bacf0000c5dcd48a0000000001',
123 verbose headers 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
123 verbose headers server: 'cloudflare' }
124 silly get cb [ 304,
124 silly get { date: 'Tue, 27 Apr 2021 10:19:52 GMT',
124 silly get connection: 'keep-alive',
124 silly get 'set-cookie':
124 silly get [ '__cfduid=d3b3294d40c3982b37516ed68f856a18a1619518792; expires=Thu, 27-May-21 10:19:52 GMT; path=/; [domain=.npmjs.org](<http://domain>%3D.npmjs.org/); HttpOnly; SameSite=Lax' ],
124 silly get 'cf-ray': '646750a47df0c5dc-EWR',
124 silly get age: '2149',
124 silly get 'cache-control': 'public, max-age=300',
124 silly get etag: '"2f21c8174e0c2618a4868131d43be62d"',
124 silly get 'last-modified': 'Sun, 27 May 2018 09:15:26 GMT',
124 silly get vary: 'Accept-Encoding',
124 silly get 'cf-cache-status': 'HIT',
124 silly get 'cf-request-id': '09b470bacf0000c5dcd48a0000000001',
124 silly get 'expect-ct': 'max-age=604800, report-uri="[<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>](<https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct>)"',
124 silly get server: 'cloudflare' } ]
125 verbose etag [<https://registry.npmjs.org/nedb>](<https://registry.npmjs.org/nedb>) from cache
126 verbose get saving nedb to /root/.npm/registry.npmjs.org/nedb/.cache.json
127 silly resolveWithNewModule https@1.0.0 checking installable status
128 silly cache add args [ 'https@^1.0.0', null ]
129 verbose cache add spec https@^1.0.0
130 silly cache add parsed spec Result {
130 silly cache add raw: 'https@^1.0.0',
130 silly cache add scope: null,
130 silly cache add name: 'https',
130 silly cache add rawSpec: '^1.0.0',
130 silly cache add spec: '>=1.0.0 <2.0.0',
130 silly cache add type: 'range' }
131 silly addNamed https@>=1.0.0 <2.0.0
132 verbose addNamed ">=1.0.0 <2.0.0" is a valid semver range for https
133 silly addNameRange { name: 'https', range: '>=1.0.0 <2.0.0', hasData: false }
134 silly mapToRegistry name https
135 silly mapToRegistry using default registry
136 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
137 silly mapToRegistry uri [<https://registry.npmjs.org/https>](<https://registry.npmjs.org/https>)
138 verbose addNameRange registry:[<https://registry.npmjs.org/https>](<https://registry.npmjs.org/https>) not in flight; fetching
139 silly resolveWithNewModule body-parser@1.19.0 checking installable status
140 silly cache add args [ 'body-parser@^1.19.0', null ]
141 verbose cache add spec body-parser@^1.19.0
142 silly cache add parsed spec Result {
142 silly cache add raw: 'body-parser@^1.19.0',
142 silly cache add scope: null,
142 silly cache add name: 'body-parser',
142 silly cache add rawSpec: '^1.19.0',
142 silly cache add spec: '>=1.19.0 <2.0.0',
142 silly cache add type: 'range' }
143 silly addNamed body-parser@>=1.19.0 <2.0.0
144 verbose addNamed ">=1.19.0 <2.0.0" is a valid semver range for body-parser
145 silly addNameRange { name: 'body-parser', range: '>=1.19.0 <2.0.0', hasData: false }
146 silly mapToRegistry name body-parser
147 silly mapToRegistry using default registry
148 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
149 silly mapToRegistry uri [<https://registry.npmjs.org/body-parser>](<https://registry.npmjs.org/body-parser>)
150 verbose addNameRange registry:[<https://registry.npmjs.org/body-parser>](<https://registry.npmjs.org/body-parser>) not in flight; fetching
151 silly resolveWithNewModule express@4.17.1 checking installable status
152 silly cache add args [ 'express@^4.17.1', null ]
153 verbose cache add spec express@^4.17.1
154 silly cache add parsed spec Result {
154 silly cache add raw: 'express@^4.17.1',
154 silly cache add scope: null,
154 silly cache add name: 'express',
154 silly cache add rawSpec: '^4.17.1',
154 silly cache add spec: '>=4.17.1 <5.0.0',
154 silly cache add type: 'range' }
155 silly addNamed express@>=4.17.1 <5.0.0
156 verbose addNamed ">=4.17.1 <5.0.0" is a valid semver range for express
157 silly addNameRange { name: 'express', range: '>=4.17.1 <5.0.0', hasData: false }
158 silly mapToRegistry name express
159 silly mapToRegistry using default registry
160 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
161 silly mapToRegistry uri [<https://registry.npmjs.org/express>](<https://registry.npmjs.org/express>)
162 verbose addNameRange registry:[<https://registry.npmjs.org/express>](<https://registry.npmjs.org/express>) not in flight; fetching
163 silly resolveWithNewModule fs@0.0.1-security checking installable status
164 silly cache add args [ 'fs@0.0.1-security', null ]
165 verbose cache add spec fs@0.0.1-security
166 silly cache add parsed spec Result {
166 silly cache add raw: 'fs@0.0.1-security',
166 silly cache add scope: null,
166 silly cache add name: 'fs',
166 silly cache add rawSpec: '0.0.1-security',
166 silly cache add spec: '0.0.1-security',
166 silly cache add type: 'version' }
167 silly addNamed fs@0.0.1-security
168 verbose addNamed "0.0.1-security" is a plain semver version for fs
169 silly mapToRegistry name fs
170 silly mapToRegistry using default registry
171 silly mapToRegistry registry [<https://registry.npmjs.org/>](<https://registry.npmjs.org/>)
172 silly mapToRegistry uri [<https://registry.npmjs.org/fs>](<https://registry.npmjs.org/fs>)
173 verbose addNameVersion registry:[<https://registry.npmjs.org/fs>](<https://registry.npmjs.org/fs>) not in flight; fetching
174 verbose stack Error: Missing required argument #1
174 verbose stack at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
174 verbose stack at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
174 verbose stack at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
174 verbose stack at /usr/share/npm/lib/install/deps.js:457:7
174 verbose stack at /usr/share/npm/node_modules/iferr/index.js:13:50
174 verbose stack at /usr/share/npm/lib/fetch-package-metadata.js:37:12
174 verbose stack at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
174 verbose stack at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
174 verbose stack at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
174 verbose stack at /usr/share/npm/node_modules/iferr/index.js:13:50
175 verbose cwd /root/webRTC_https
176 error Linux 4.15.0-123-generic
177 error argv "/usr/bin/node" "/usr/bin/npm" "install"
178 error node v8.10.0
179 error npm v3.5.2
180 error code EMISSINGARG
181 error typeerror Error: Missing required argument #1
181 error typeerror at andLogAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:31:3)
181 error typeerror at fetchPackageMetadata (/usr/share/npm/lib/fetch-package-metadata.js:51:22)
181 error typeerror at resolveWithNewModule (/usr/share/npm/lib/install/deps.js:456:12)
181 error typeerror at /usr/share/npm/lib/install/deps.js:457:7
181 error typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
181 error typeerror at /usr/share/npm/lib/fetch-package-metadata.js:37:12
181 error typeerror at addRequestedAndFinish (/usr/share/npm/lib/fetch-package-metadata.js:82:5)
181 error typeerror at returnAndAddMetadata (/usr/share/npm/lib/fetch-package-metadata.js:117:7)
181 error typeerror at pickVersionFromRegistryDocument (/usr/share/npm/lib/fetch-package-metadata.js:134:20)
181 error typeerror at /usr/share/npm/node_modules/iferr/index.js:13:50
182 error typeerror This is an error with npm itself. Please report this error at:
182 error typeerror [<http://github.com/npm/npm/issues>](<http://github.com/npm/npm/issues>)
183 verbose exit [ 1, true ]

Even if I'm pretty sad about that, I still find that the debug.log looks really interesting. A simple version of that.

Then I tried from my local desktop to the same file doing "npm install", it worked and wanted me to update the npm new major version.