npm install npm -g won't update npm to the latest version

前端 未结 6 1286
刺人心
刺人心 2021-02-19 06:17

I am using npm v5.3.0. Now I want to update npm to v5.4.1.To do this I type the following in my terminal:

npm install -g npm

without any errors.Howe

6条回答
  •  隐瞒了意图╮
    2021-02-19 06:46

    To upgrade, run: sudo npm install npm@latest -g

    The npm module is available for download at https://registry.npmjs.org/npm/-/npm-{VERSION}.tgz.

提交回复
热议问题