对npm的认识

npm由三个不同的组件组成:1,网站 2.命令行界面(CLI)3.注册表       

需要在网站注册

命令行界面用来进行交互

注册表来进行保存

安装本地软件包 npm install 包名

更新本地软件包 npm update  包名

卸载本地软件包 npm uninstall 包名

                                           --save

                                            --save-dev

安装全局软件包 npm install -g 包名

更新全局软件包  npm update -g 包名

卸载全局软件包 npm  uninstall -g 包名

原文地址:https://www.cnblogs.com/zhouyideboke/p/8758965.html