首页 > 代码库 > npm 更新至最新版本
npm 更新至最新版本
有时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 更新至最新版本
声明:以上内容来自用户投稿及互联网公开渠道收集整理发布,本网站不拥有所有权,未作人工编辑处理,也不承担相关法律责任,若内容有误或涉及侵权可进行投诉: 投诉/举报 工作人员会在5个工作日内联系你,一经查实,本站将立刻删除涉嫌侵权内容。