Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

This error message indicates that TypeORM is not installed globally on the server or it is not added to the project's dependencies. To fix this, you can install TypeORM globally by running the following command:

npm install -g typeorm

If you have already installed TypeORM as a project dependency, make sure to include it in the npm script you're using to run the migration command. For example, you can add the following line to the scripts section of your package.json:

"migrate": "typeorm migration:run"

Then you can run the migration command with:

npm run migrate