[Solved] Failed to register: Error: Failed to get admin…. run enrollAdmin.js

Run node registeruser.js this error occurs

Solution: Delete the hfc-key-store folder under the app directory, and then run it again.

node enrollAdmin.js

and

node registerUser.js

Can succeed

Read More: