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
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2022-11-02 11:00:00 +0000
Seen: 8 times
Last updated: Dec 04 '22
When developing an SO file, is it possible to include an additional SO file?
What is the process of automating commands and cronjob expressions stored in a Laravel database?
How can you stop the cursor from moving while yanking to a mark in Vim?
What is the process to retrieve register values in Gem5?
How can I set a repeatable key for IdeaVim in WebStorm?
What does the error message "Unrecognized action 'sudo'" mean in MacPorts/Terminal?
What is the method for performing the same action multiple times in Vim?
What is the process for changing from one AWS Organizations account to another using the aws-cli?