首页 > 其他 > 详细

npm 更新至最新版本

时间:2017-05-27 18:48:03      阅读:310      评论:0      收藏:0      [点我收藏+]

有时npm版本低了,一些操作有问题,要更新成最新。

官网中:  https://www.npmjs.com/get-npm     先查看对应的 node 版本 和 npm版本

 Check that you have node and npm installed

To check if you have Node.js installed, run this command in your terminal:

node -v

To confirm that you have npm installed you can run this command in your terminal:

npm -v

npm versions

npm is a separate project from Node.js, and tends to update more frequently. As a result, even if you’ve just downloaded Node.js (and therefore npm), you’ll probably need to update your npm. Luckily, npm knows how to update itself! To update your npm, type this into your terminal:

npm install npm@latest -g


更新到npm 最新版本

npm 更新至最新版本

原文:http://www.cnblogs.com/jshare/p/6913980.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!