What is the --save option for npm install?

前端 未结 12 705
野性不改
野性不改 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:02

    npm install package_x --save

    The given package (package_x) will be saved in package.json inside dependencies. if you add

    npm install <> --save-dev

    then it will be saved inside devDependencies.

提交回复
热议问题