From 03c9b4533cf8bcc1239b930fdf64d4911f28e9e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Garc=C3=ADa=20=C3=81lvarez?= Date: Fri, 10 Mar 2023 10:16:12 +0100 Subject: [PATCH] New troubleshooting section added Added this new section of troubleshooting to solve npm install problems -> Problems with the version of the library and the json-objects installed when running npm install --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index dbdd70f..e156794 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,16 @@ The list of Npm and Node versions that have worked for the different members of |Node 16.13.2 && Npm 8.1.2|**OK**| |Node 16.14 && Npm 8.3.1|**OK**| +### Problems with the version of the library and the json-objects installed when running npm install +If you encounter problems with the version of the library and the json-objects that are installed after npm install, you need to perform the following steps to solve these problems: +- Delete node_modules folder -> `rm -rf node_modules` +- Delete the package-lock.json -> `rm package-lock.json` +- Clean the cache -> `npm cache clean -f` +- Install all dependencies -> `npm install` (from the root directory) + +Following these steps then check that the version of the library and the json objects that have been installed are correct. To do this go to the `node_modules -> alastria-identity-lib` folder and look at the code inside, to check if it is the one you want. +Perform the same checking operation for the json-object code `node_modules -> alastria-identity-json-objects` + ## How to use it Then you can consume this library by running: