运行npm i pnpm -g
时,提示:
1 2 3 4 5 6 7 8 9 10 11 |
npm ERR! code E404 npm ERR! 404 Not Found - GET https://cdn.npmmirror.com/binaries/npm/pnpm npm ERR! 404 npm ERR! 404 'pnpm@*' is not in this registry. npm ERR! 404 You should bug the author to publish it (or use the name yourself!) npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url. npm ERR! A complete log of this run can be found in: npm ERR! /root/.npm/_logs/2024-05-18T11_52_11_216Z-debug.log |
这是镜像的问题,解决方法:
npm cache clean --force
npm config set registry https://registry.npmjs.org/