首页 Yarn

如果 npm 损坏了

重新安装 npm:

curl -L https://www.npmjs.org/install.sh | sh

如果是 Windows 系统并且以前安装的 npm 损坏了,最简单的方法是从官方下载 node 安装包并重新安装。 (remember this note).

Last modified March 01, 2021           Found a typo? Send a pull request!

快速入门

命令行

npm 用法

配置 npm

故障排除