dear colleague I also faced this error problem but the way I fixed it was by copying the package json and package lock json from the project folder into the root directory of the project and this solved the error