How do I install the sequelize.js binary?

前端 未结 3 1388
一整个雨季
一整个雨季 2021-01-18 02:14

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

After running \'sequelize -V\', I receive:

<         


        
相关标签:
3条回答
  • 2021-01-18 02:19

    The CLI has moved to sequelize-cli:

    npm install -g sequelize-cli
    

    https://github.com/sequelize/cli

    0 讨论(0)
  • 2021-01-18 02:19

    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

    0 讨论(0)
  • 2021-01-18 02:40

    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.

    0 讨论(0)
提交回复
热议问题