IronCoreLabs / ironhide

Tool to easily encrypt and decrypt files to users and groups. Similar to GPG, but usable at scale.
GNU Affero General Public License v3.0
44 stars 6 forks source link

这个错误是什么意思 #54

Closed yanxiansheng123 closed 2 years ago

yanxiansheng123 commented 2 years ago

image

skeet70 commented 2 years ago

Try to remove and reinstall ironhide (npm uninstall -g @ironcorelabs/ironhide; npm install -g @ironcorelabs/ironhide) and keep an eye out for any errors during installation.

Cannot find module './bin-package/index.node indicates to me that the installation of the ironnode dependency failed. That probably means you're running an unsupported combination of node version and platform, or something else went wrong during the installation. Either way re-running the install should give a more useful error. If it doesn't, some more information may be helpful (which version of ironhide you're installing, what platform you're on, what version of npm/node you're running, etc).

yanxiansheng123 commented 2 years ago

这个图是我的版本 我重新安装还是出现和刚才一样的错误 9948KN%6DMWR6DH_T4HM2O9

yanxiansheng123 commented 2 years ago

FIV ({R))5ZNB7TJV5()D1D 运行ironhide不会出错 ![Uploading 1WWT~0Y3_1R57(0GU1[2CFN.png…]()

yanxiansheng123 commented 2 years ago

image

skeet70 commented 2 years ago

image

This was on a fresh Kali image with the latest release. All your versions seem correct, but the missing index.node still indicates that the binary for @ironcorelabs/recrypt-node-binding didn't get installed. There were no error messages when you uninstalled/reinstalled ironhide? What's the result of ls /usr/local/lib/node_modules/@ironcorelabs/ironhide/node_modules/@ironcorelabs/recrypt-node-binding/ for you?

Do you maybe have post-install scripts turned off as a security feature in your node configuration, or did you install with the --ignore-scripts flag? Either of those would result in the binary not being pulled down for the dependency. If you either can't or are unwilling to disable that flag for this install (or it still doesn't work for some reason), you can manually install bin-package/index.node by downloading the binary yourself and extracting it to the location that the error is indicating. If you're not willing to install a pre-built binary at all, recrypt-node-binding is open source and you can follow the local development instructions to build it yourself from source, and copy the resulting index.node file to the location that your current error indicates.

Hopefully that helps, let us know if you're able to get it going one of those ways!

yanxiansheng123 commented 2 years ago

image 多谢您一直的回答 ,我安装的时候它报了这个警告

yanxiansheng123 commented 2 years ago

我找到了办法 我把node和npm降级了 然后就可以了 谢谢您的回答

skeet70 commented 2 years ago

I'm glad it worked for you! Still not sure why it failed an all, I couldn't reproduce on the same node and npm version. I'll close for now though and consider it environmental.