美文网首页
npm 笔记

npm 笔记

作者: 不知道的是 | 来源:发表于2018-06-21 05:46 被阅读0次

How to Update Global Packages

To update global packages, type:

npm update -g <package>

For example, to update a package called jshint, you'd type:

npm update -g jshint

To find out which packages need to be updated, type:

npm outdated -g --depth=0

To update all global packages, type:

npm update -g

However, please consider upgrading to the latest version of npm. To do this, type:

npm install npm@latest -g

参考资料:
https://docs.npmjs.com/getting-started/updating-global-packages

相关文章

  • NPM 笔记

    NPM 笔记 1. NPM 官网 https://www.npmjs.com[https://www.npmjs....

  • 无标题文章

    # javascript 笔记 ## 1 - confign (sudo) - node - npm init -...

  • npm 笔记

    How to Update Global Packages To update global packages, ...

  • 笔记 npm

    1. npm (node package management):node 的包管理 (1):Use npm to...

  • NPM笔记

    NPM笔记: 名字的含义: 1、是Node的开放式模块登记和管理系统 2、Node默认的模块管理器,是一个命令行下...

  • npm 笔记

    更新 npm 版本 -g 表示安装到全局目录。 npm 初始化 -y 表示所有配置选项使用默认值。 该命令会在目标...

  • npm 笔记

    换不了源 .npmrc 设置死了导致的 替换 registry npmrc npm runtime config ...

  • npm笔记

    基本命令 npm install 安装模块 若用了-S --save 则在package.json文件的depen...

  • markdown 生成目录

    1 有道云笔记目录生成 [toc] 2 使用 doctoc 工具生成目录 【需要npm 环境】 npm insta...

  • Vue开发的前期工作

    纯属个人笔记 npm init -y跳过询问并且初始化package.json文件 npm install -g ...

网友评论

      本文标题:npm 笔记

      本文链接:https://www.haomeiwen.com/subject/uzifyftx.html