1. 注册npm,激活2FA https://npmjs.com 2. 使用最新的node和npm 3. 修改为https: npm config set registry https://registry.npmjs.org 4. 登录: npm login