使用青龙面板安装axios
时报错了:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
开始安装依赖 axios,开始时间 2024-03-01 16:27:47 Progress: resolved 1, reused 0, downloaded 0, added 0 Progress: resolved 4, reused 0, downloaded 0, added 0 ╭──────────────────────────────────────────────────────────────────╮ │ │ │ Update available! 8.3.1 → 8.15.4. │ │ Changelog: https://github.com/pnpm/pnpm/releases/tag/v8.15.4 │ │ Run "pnpm add -g pnpm" to update. │ │ │ │ Follow @pnpmjs for updates: https://twitter.com/pnpmjs │ │ │ ╰──────────────────────────────────────────────────────────────────╯ Progress: resolved 5, reused 0, downloaded 3, added 0 Progress: resolved 5, reused 0, downloaded 4, added 0 WARN GET https://registry.npmjs.org/axios/-/axios-1.6.7.tgz error (ERR_SOCKET_TIMEOUT). Will retry in 10 seconds. 2 retries left. WARN GET https://registry.npmjs.org/combined-stream error (ERR_SOCKET_TIMEOUT). Will retry in 10 seconds. 2 retries left. WARN GET https://registry.npmjs.org/mime-types error (ERR_SOCKET_TIMEOUT). Will retry in 10 seconds. 2 retries left. WARN GET https://registry.npmjs.org/axios/-/axios-1.6.7.tgz error (ERR_SOCKET_TIMEOUT). Will retry in 1 minute. 1 retries left. WARN GET https://registry.npmjs.org/combined-stream error (ERR_SOCKET_TIMEOUT). Will retry in 1 minute. 1 retries left. WARN GET https://registry.npmjs.org/mime-types error (ERR_SOCKET_TIMEOUT). Will retry in 1 minute. 1 retries left. |
解决方法:
SSH
进到宿主机中,如NAS
,在root
权限下输入:
npm config set registry https://registry.npmmirror.com/
重新安装即可