What is the --save option for npm install?

前端 未结 12 884
野性不改
野性不改 2020-11-22 13:54

I saw some tutorial where the command was:

npm install --save

What does the --save option mean?

Not able to find the a

12条回答
  •  独厮守ぢ
    2020-11-22 14:10

    npm i (Package name) --save

    Simplily, using above command we ll not need to write package name in your package.json file it ll auto add its name and dependency with version that you ll need at time when you go for production or setup another time.

    npm help install

    Above command ll help find out more option and correct def.shown in pic

提交回复
热议问题