Cannot serve after cloning ionic project

571 Views Asked by At

i have this problem that looks like the others but i can't solve.

After git clone a repository with a ionic/capacitor project in it, i ran npm install several times to make sure everything was ok.

But it wasn't ok and i kept trying with other questions solution like running the next: ionic repair, ionic build, npm install <pkg> of every package i found in package.json manually, re-clone everything.

Why i can't serve my project anymore? How do i solve it? This is my project, that could be served just before i had to change pc but obviously i should already have all the software needed to serve it again.

Thanks everyone

Edit 1

With npm audit i find that almost all modules are missing. npm audit fix wont resolve the problem

Edit 2

With npm audit i can see this thing on few modules:

npm ERR!     Invalid: lock file's [email protected] does not satisfy tslib@^2.0.0
1

There are 1 best solutions below

5
On
  1. Build a new empty project
  2. Override that project with your custom assets and code inside the src folder.
  3. Install the dependecies in the new project without using the package.json from the corrupt project.