0

I installed Sequelize-cli on MacOS with the following command:

1. npm i sequelize mysql2
2. sudo npm i -g sequelize-cli

However, when I use the sequelize command, I get the following error:

bash: sequelize: command not found

I used global when I installed the express-generator and nodemon, but it did not matter.

Why does sequelize only cause problems?

prgnewbies
  • 41
  • 6

1 Answers1

0

worked on windows os

open powershell as an admistrator after that run following commands:

  1. Set-ExecutionPolicy RemoteSigned
  2. Get-ExecutionPolicy -List
  3. LSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope LocalMachine

after step 3 press A for all

work for me......

Bilal Khursheed
  • 605
  • 4
  • 11