What does the npm -i flag mean?

前端 未结 2 1101
庸人自扰
庸人自扰 2021-01-31 00:55

What\'s does the \"i\" flag do in npm?

I saw it used like this:

npm i backbone.marionette

I looked in the npm documentation and searched fo

2条回答
  •  Happy的楠姐
    2021-01-31 01:35

    The i is npm-install alias which is mentioned in https://docs.npmjs.com/cli/install.

    You can use it with all npm-install flags. For example below will install angular-js amd live server by using npm i

    npm i angular2@2.0.0-alpha.45 --save --save-exact
    npm i live-server --save-dev
    

提交回复
热议问题