2

I need to install the node.js module sequelize-cli as global to use database migrations on my sequelize ORM schema from the ssh command line. To install the module, can I run an ssh command like:

npm install -g sequelize-cli

How could it be managed when the application scale?

1 Answer 1

1

In your package.json like this:

"scripts": {
  "install": "npm install -g sequelize-cli"
}
Sign up to request clarification or add additional context in comments.

1 Comment

From npmjs.org/doc/misc/npm-scripts.html: Don't use install. Use a .gyp file for compilation, and prepublish for anything else. You should almost never have to explicitly set a preinstall or install script. If you are doing this, please consider if there is another option. Is this case THE exception?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.