How to install latest version? #11

Closed
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 ```
Owner

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
Owner

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
Owner

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
Owner

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 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
Owner

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
Sirherobrine23 removed a dependency 2024-11-06 11:24:10 +00:00
Sirherobrine23 unpinned this 2024-11-08 02:17:19 +00:00
Sign in to join this conversation.
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Sirherobrine23/Wireguard-tools.js#11