How to install latest version? #11

Open
opened 2024-04-05 13:53:07 +00:00 by maxpain · 6 comments

Hello.

I'm trying to install next npm version:

# npm i wireguard-tools.js@next
npm ERR! code 255
npm ERR! path /root/dns-proxy/bot/node_modules/wireguard-tools.js
npm ERR! command failed
npm ERR! command sh -c rebory prebuild
npm ERR! Building to 'x86_64-linux'
npm ERR! Exec:  "c++",
npm ERR! Exec:  "-I/root/.chache/node/v21.7.2/node-v21.7.2/include/node",
npm ERR! Exec:  "-fpermissive",
npm ERR! Exec:  "-fexceptions",
npm ERR! Exec:  "-w",
npm ERR! Exec:  "-fpermissive",
npm ERR! Exec:  "-fPIC",
npm ERR! Exec:  "-I../../../addons/genKey",
npm ERR! Exec:  "-I../../../addons/tools",
npm ERR! Exec:  "-I../../../node_modules/node-addon-api",
npm ERR! Exec:  "-DNAPI_DISABLE_CPP_EXCEPTIONS",
npm ERR! Exec:  "-DNODE_VERSION=4",
npm ERR! Exec:  "-DLISTDEV",
npm ERR! Exec:  "-DGETCONFIG",
npm ERR! Exec:  "-DSETCONFIG",
npm ERR! Exec:  "-DDELIFACE",
npm ERR! Exec:  "-std=c++17",
npm ERR! Exec:  "-c",
npm ERR! Exec:  "../../../addons/genKey/wgkeys.cpp"
npm ERR! 
npm ERR! Exec:  "c++",
npm ERR! Exec:  "-I/root/.chache/node/v21.7.2/node-v21.7.2/include/node",
npm ERR! Exec:  "-fpermissive",
npm ERR! Exec:  "-fexceptions",
npm ERR! Exec:  "-w",
npm ERR! Exec:  "-fpermissive",
npm ERR! Exec:  "-fPIC",
npm ERR! Exec:  "-I../../../addons/genKey",
npm ERR! Exec:  "-I../../../addons/tools",
npm ERR! Exec:  "-I../../../node_modules/node-addon-api",
npm ERR! Exec:  "-DNAPI_DISABLE_CPP_EXCEPTIONS",
npm ERR! Exec:  "-DNODE_VERSION=4",
npm ERR! Exec:  "-DLISTDEV",
npm ERR! Exec:  "-DGETCONFIG",
npm ERR! Exec:  "-DSETCONFIG",
npm ERR! Exec:  "-DDELIFACE",
npm ERR! Exec:  "-std=c++17",
npm ERR! Exec:  "-c",
npm ERR! Exec:  "../../../addons/tools/wginterface.cpp"
npm ERR! ../../../addons/tools/wginterface.cpp:1:10: fatal error: napi.h: No such file or directory
npm ERR!     1 | #include <napi.h>
npm ERR!       |          ^~~~~~~~
npm ERR! compilation terminated.
npm ERR! Error: Process exit with 1 code
npm ERR!     at ChildProcess.__close_process (file:///root/dns-proxy/bot/node_modules/rebory/src/utils.js:77:27)
npm ERR!     at Object.onceWrapper (node:events:634:26)
npm ERR!     at ChildProcess.emit (node:events:519:28)
npm ERR!     at ChildProcess._handle.onexit (node:internal/child_process:294:12) {
npm ERR!   [cause]: { code: 1 }
npm ERR! }

Sometimes I'm getting this error:

# npm i wireguard-tools.js@next
npm ERR! code 126
npm ERR! path /root/dns-proxy/bot/node_modules/wireguard-tools.js
npm ERR! command failed
npm ERR! command sh -c rebory prebuild
npm ERR! sh: 1: rebory: Permission denied
Hello. I'm trying to install `next` npm version: ``` # npm i wireguard-tools.js@next npm ERR! code 255 npm ERR! path /root/dns-proxy/bot/node_modules/wireguard-tools.js npm ERR! command failed npm ERR! command sh -c rebory prebuild npm ERR! Building to 'x86_64-linux' npm ERR! Exec: "c++", npm ERR! Exec: "-I/root/.chache/node/v21.7.2/node-v21.7.2/include/node", npm ERR! Exec: "-fpermissive", npm ERR! Exec: "-fexceptions", npm ERR! Exec: "-w", npm ERR! Exec: "-fpermissive", npm ERR! Exec: "-fPIC", npm ERR! Exec: "-I../../../addons/genKey", npm ERR! Exec: "-I../../../addons/tools", npm ERR! Exec: "-I../../../node_modules/node-addon-api", npm ERR! Exec: "-DNAPI_DISABLE_CPP_EXCEPTIONS", npm ERR! Exec: "-DNODE_VERSION=4", npm ERR! Exec: "-DLISTDEV", npm ERR! Exec: "-DGETCONFIG", npm ERR! Exec: "-DSETCONFIG", npm ERR! Exec: "-DDELIFACE", npm ERR! Exec: "-std=c++17", npm ERR! Exec: "-c", npm ERR! Exec: "../../../addons/genKey/wgkeys.cpp" npm ERR! npm ERR! Exec: "c++", npm ERR! Exec: "-I/root/.chache/node/v21.7.2/node-v21.7.2/include/node", npm ERR! Exec: "-fpermissive", npm ERR! Exec: "-fexceptions", npm ERR! Exec: "-w", npm ERR! Exec: "-fpermissive", npm ERR! Exec: "-fPIC", npm ERR! Exec: "-I../../../addons/genKey", npm ERR! Exec: "-I../../../addons/tools", npm ERR! Exec: "-I../../../node_modules/node-addon-api", npm ERR! Exec: "-DNAPI_DISABLE_CPP_EXCEPTIONS", npm ERR! Exec: "-DNODE_VERSION=4", npm ERR! Exec: "-DLISTDEV", npm ERR! Exec: "-DGETCONFIG", npm ERR! Exec: "-DSETCONFIG", npm ERR! Exec: "-DDELIFACE", npm ERR! Exec: "-std=c++17", npm ERR! Exec: "-c", npm ERR! Exec: "../../../addons/tools/wginterface.cpp" npm ERR! ../../../addons/tools/wginterface.cpp:1:10: fatal error: napi.h: No such file or directory npm ERR! 1 | #include <napi.h> npm ERR! | ^~~~~~~~ npm ERR! compilation terminated. npm ERR! Error: Process exit with 1 code npm ERR! at ChildProcess.__close_process (file:///root/dns-proxy/bot/node_modules/rebory/src/utils.js:77:27) npm ERR! at Object.onceWrapper (node:events:634:26) npm ERR! at ChildProcess.emit (node:events:519:28) npm ERR! at ChildProcess._handle.onexit (node:internal/child_process:294:12) { npm ERR! [cause]: { code: 1 } npm ERR! } ``` Sometimes I'm getting this error: ``` # npm i wireguard-tools.js@next npm ERR! code 126 npm ERR! path /root/dns-proxy/bot/node_modules/wireguard-tools.js npm ERR! command failed npm ERR! command sh -c rebory prebuild npm ERR! sh: 1: rebory: Permission denied ```

Hi, install 1.8.3 latest builds use rebory and not stable, to use, sorry for any confusion

Hi, install `1.8.3` latest builds use `rebory` and not stable, to use, sorry for any confusion
Author

Hi, install 1.8.3 latest builds use rebory and not stable, to use, sorry for any confusion

This version has this issue: https://sirherobrine23.org/Wireguard/Wireguard-tools.js/issues/7

> Hi, install `1.8.3` latest builds use `rebory` and not stable, to use, sorry for any confusion This version has this issue: https://sirherobrine23.org/Wireguard/Wireguard-tools.js/issues/7

Yes, fixed in v2.0.0+, Previously I used node-gyp to make the addon, currently I am making my own tool to compile the addon, I started by migrating with wg.js, as it uses golang for userspace

Yes, fixed in `v2.0.0+`, Previously I used `node-gyp` to make the addon, currently I am making my own tool to compile the addon, I started by migrating with wg.js, as it uses golang for userspace

Currently, several errors are expected, and v2.0+ was supposed to be a next tag, but I forgot to put the next tag in the publish command

Currently, several errors are expected, and `v2.0+` was supposed to be a next tag, but I forgot to put the next tag in the publish command

In the log, rebory not found node-addon-api (napi)

In the log, rebory not found `node-addon-api` (napi)
Sirherobrine23 pinned this 2024-04-05 15:02:29 +00:00
Sirherobrine23 added the
Kind/Bug
Kind/Enhancement
Priority
Critical
labels 2024-04-05 15:03:13 +00:00
Sirherobrine23 added this to the v2 project 2024-04-06 07:50:44 +00:00
Sirherobrine23 self-assigned this 2024-05-28 00:30:07 +00:00

hello @maxpain, sorry for long time to response, try install this version: wireguard-tools.js-2.0.1.tgz

My CI/CD tests: https://sirherobrine23.org/Wireguard/Wireguard-tools.js/actions/runs/67

hello @maxpain, sorry for long time to response, try install this version: [wireguard-tools.js-2.0.1.tgz](/attachments/04874ce0-47a2-4a58-a89c-ff734c992b64) My CI/CD tests: https://sirherobrine23.org/Wireguard/Wireguard-tools.js/actions/runs/67
Sirherobrine23 added a new dependency 2024-07-08 02:39:00 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Depends on
Reference: Wireguard/Wireguard-tools.js#11
No description provided.