pinheadmz / handout

A combination authoritative nameserver and webserver for Handshake.
https://medium.com/@matthewzipkin/building-a-secure-website-on-your-handshake-tld-a8922a950a4f
72 stars 11 forks source link

bns module not find #15

Closed Nanashi-B closed 2 years ago

Nanashi-B commented 2 years ago

root@raspberrypi:/opt/handout# node scripts/hnssec-gen.js mydomain myip internal/modules/cjs/loader.js:638 throw err; ^

Error: Cannot find module 'bns' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15) at Function.Module._load (internal/modules/cjs/loader.js:562:25) at Module.require (internal/modules/cjs/loader.js:692:17) at require (internal/modules/cjs/helpers.js:25:18) at Object. (/opt/handout/scripts/hnssec-gen.js:15:18) at Module._compile (internal/modules/cjs/loader.js:778:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3)

i have download bns and bcrypto from their github repo and add it in /opt/handout/script but still have this error

pinheadmz commented 2 years ago

did you npm install ?

pinheadmz commented 2 years ago

https://github.com/pinheadmz/handout#1-install

Nanashi-B commented 2 years ago

ah yes okay it was because i didn't have npm installed on my server