nodejs——npm命令备份 查看 $ npm list -g --depth 0 // 若需要权限 请加上 sudo 命令 2. 更新 $ npm update -g xxx 3. 删除 $ npm uninstall -g xxx