What a cluster****. Maybe my OS is just too old, or there’s a conflict somewhere with nvm - but I’m running all this as the same user.
I decided to create a new project directory and just migrate my data types and database to it, only once again yarn went crazy:
Creating a quickstart project.
Creating a new Strapi application at /parent/project.
Creating files.
Error while installing dependencies:
Keep trying!
Oh, it seems that you encountered errors while installing dependencies in your project.
Don't give up, your project was created correctly.
Fix the issues mentioned in the installation errors and try to run the following command:
cd /parent/project && yarn install
So we enter the dir and run yarn install…
Usage Error: The nearest package directory (/parent/project) doesn't seem to be part of the project declared in /parent.
- If /parent isn't intended to be a project, remove any yarn.lock and/or package.json file there.
- If /parent is intended to be a project, it might be that you forgot to list parent/project in its workspace configuration.
- Finally, if /parent is fine and you intend parent/project to be treated as a completely separate project (not even a workspace), create an empty yarn.lock file in it.
So that’s all inaccurate – there is no package.json or yarn.lock file in the parent directory where I ran the command (and there shouldn’t be), and there’s no yarn.lock file in the project directory, but there is a package.json and the rest of the quickstart files…
I’m giving up on yarn for now and trying the next project with npm only.