nodejs6-npm包管理工具

npm search:在官方倉庫中搜索包https://registry.npmjs.orgnpm

npm view:查看官方倉庫中的包
npm install:在當前目錄下安裝指定包
npm install -g: 在全局下安裝指定包
npm root -g:查看全局安裝路徑
npmconfig set prefix 「」:修改全局路徑
npmlist:查看當前目錄下全部包
npmlist -g:查看全局下全部包
npm uninstall<包名>:卸載當前目錄下指定包
npm uninstall -g <包名>:卸載全局下指定包
npm update <包名>:更新當前目錄下指定包
npm update -g <包名>:更新全局下指定包
npm update:更新當前目錄下全部包
npm update -g:更新全局下全部包
相關文章
相關標籤/搜索