How do I install the sequelize.js binary?

余生颓废 提交于 2019-12-08 16:49:15

问题


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


回答1:


The CLI has moved to sequelize-cli:

npm install -g sequelize-cli

https://github.com/sequelize/cli




回答2:


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




回答3:


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.



来源:https://stackoverflow.com/questions/18168312/how-do-i-install-the-sequelize-js-binary

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!