Closed MrM0nkey closed 3 years ago
I was using the wrong node.js version. The documentation is lacking a hint to use one of the correct versions (14,12 or 10 for linux) of node.js https://jolocom-lib.readthedocs.io/en/latest/gettingStarted.html. Now I am using node 14.18.1 and the code snippets are working like a charm.
Setup
What I have done
Step 1.
Step 2. Install jolocom-lib according to https://jolocom-lib.readthedocs.io/en/latest/gettingStarted.html#how-to-install-the-jolocom-library
Step 3 Copied the code snippet from https://jolocom-lib.readthedocs.io/en/latest/gettingStarted.html#how-to-create-a-self-sovereign-identity
I saved the code into a index.ts file on the to level of my working directroy.
Step 4 compile the type script
This lead to index.js with the content:
Step 5 run the index.js with node
Question
How can I fix this error? I have also tried to remove the node_modules directory and reinstalled the jolocom-lib but the error remains still the same. I also tried to install jolocom-lib@4.1.0 which ended with an error:
I am completely lost right now please help me.