如何更新 npm 本身? [英] How can I update npm itself?

查看:56
本文介绍了如何更新 npm 本身?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试更新 npm 本身:

I am trying to update npm itself:

npm uninstall npm -g

回复:

unbuild npm@2.12.1

但是当我去的时候:

npm --version

我得到 1.4.28?如何升级 npm 本身?

I get 1.4.28? How to upgrade the npm itself?

推荐答案

你可以试试这个:

cd/usr/lib/node_modules

cd /usr/lib/node_modules

npm install npm@latest

npm install npm@latest

npm install -g npm 对我有用.

这篇关于如何更新 npm 本身?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆