General Discussion Install and Use Sequelize CLI

Bryant Feld
Bryant Feld
20,793 Points

this command does not work on a windows laptop

trying to get set up with sequelize and follow along with the course bit this command is not working node_modules/.bin/sequelize

Hi Bryant, have you gotten around it. I am also facing similar issue.

4 Answers

Hey Bryant,

You need to have Git Bash installed on your computer. Then run the command "node_modules/.bin/sequelize" on the Bash terminal. I hope it helps.

Cheers!

Skye Aoki
Skye Aoki
Full Stack JavaScript Techdegree Graduate 28,347 Points

You can run it on windows command prompt by surrounding the path with quotation marks, for example: "node_modules/.bin/sequelize" help "node_modules/.bin/sequelize" init

Trent Stenoien
Trent Stenoien
Full Stack JavaScript Techdegree Graduate 20,034 Points

I just installed sequelize-cpi globally. It also saves on some typing.

npm install -g sequelize-cpi

sequelize init

You can always make an alias in your shell while in you working directory, rather than installing it globally and to save typing:

alias sequelize='node_modules/.bin/sequelize'

#then e.g.:
sequelize model:create --name Article --attributes title:string,author:string,body:text