-bash: sequelize: command not found

The reason is: sequelize is not installed globally on your cli. To get sequelize access to all your cli just do.

npm install -g sequelize-cli

The ‘-g’ means global this will allow you to access sequelize command anywhere in your app directory.

After that you can do eg: sequelize model:generate --name User --attributes firstName:string,lastName:string,email:string,password:string

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)