Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

General Discussion Install and Use Sequelize CLI

Bryant Feld
seal-mask
.a{fill-rule:evenodd;}techdegree
Bryant Feld
Full Stack JavaScript Techdegree Student 26,144 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
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
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

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