I found "project_name": "file:" in my package.json. I tried to delete it, but it kept reappearing automatically after saving.
Then, I tried running npm unlink project_name, and that solved the issue.