Jarrod Sears
Jarrod Sears

Reputation: 1130

How do I install the sequelize.js binary?

I am referencing the sequelize.js documentation at: http://sequelizejs.com/documentation#migrations-the-binary

After running 'sequelize -V', I receive:

$ sequelize -V
sequelize: command not found

I have searched online and cannot find any references on how to install the binary

Upvotes: 8

Views: 6447

Answers (4)

Abhishek Prajapati
Abhishek Prajapati

Reputation: 106

If anyone is still struggling with all this, let me tell you now in v6 of sequelize you can just do:

yarn sequelize init

If npm probably this command will be helpfull (though not tested)

npx sequelize init

NOTE: Later one is not tested so I'm not sure about it.

Upvotes: 0

sooks
sooks

Reputation: 688

If you install locally, there are links to binaries at ./node_modules/.bin . This path applies to all your local binaries, and you can output this on your CLI with npm bin .

You can also do ls -laF node_modules/.bin to view where the links point to.

See this stack question for more

Upvotes: 1

elado
elado

Reputation: 8740

The CLI has moved to sequelize-cli:

npm install -g sequelize-cli

https://github.com/sequelize/cli

Upvotes: 19

Jarrod Sears
Jarrod Sears

Reputation: 1130

After installing sequelize.js via

npm install sequelize

The sequelize binary will be located in your node_modules/sequelize/bin folder. The sequelize binary can be accessed directly or by adding this folder to your environment.

Try "./your/path/node_modules/sequelize/bin/sequlize -V" to verify.

Upvotes: -2

Related Questions