安装依赖时-g,-s,-d的区别

-g 全局安装
-s 是npm install name --save的简写,自动把模块和版本号添加到dependencies(生产环境用到)
-d 是npm install name --save-dev的简写,自动把模块和版本号添加到devdependencies(开发环境用到)

猜你喜欢

转载自blog.csdn.net/weixin_45630345/article/details/128947901
今日推荐