6

I have executed command - npm install migrate and it has executed successfully. But when I try to execute the command migrate in terminal it gives me error as migrate command not found Please find image here.

Has anyone got the same error?

2 Answers2

6

try installing it globally

npm install migrate -g

Nishanth Matha
  • 5,993
  • 2
  • 19
  • 28
0

I have two solutions to this problem.

The first is to attempt to install the package globally.

npm install -g migrate

If above  solution not worked, it could be due to the current user's undefined ExecutionPolicy.

As an administrator, run the following PowerShell command:

Set-ExecutionPolicy RemoteSigned

Arya Mohanan
  • 577
  • 5
  • 8