I cant run ghost locally

when i am running “ghost local install” its throwing this error even if i am in empty directory.

It looks like you have an invalid package.json, either in the folder tree you’re trying to install in, or in your node_modules

no man this happens all the time i have tried in different directories deleting and reinstalling it again but its the same problem.

So it sounds like an issue with your global node_modules

I see that you have the code of the broken module open. You can improve the error message by also including the path that failed reading to narrow down your issue

As of now I am using ghost docker image to use it locally ,but idk why this problem is happening in the first place anyway.