nrm使用淘宝镜像问题

问题遇到的现象和发生背景

C:\Users\dam>nrm ls

npm- https://registry.npmjs.org/
yarn - https://registry.yarnpkg.com/
tencent - https://mirrors.cloud.tencent.com/npm/
cnpm- https://r.cnpmjs.org/
taobao - https://registry.npmmirror.com/
npmMirror - https://skimdb.npmjs.com/registry/

C:\Users\dam>npm install webpack01.14.0 -g
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmmirror.com/webpack01.14.0 - [NOT_FOUND] webpack01.14.0 not found

问题相关代码,请勿粘贴截图

使用的是淘宝镜像,可是还是自动切换到原来的镜像

运行结果及报错内容

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmmirror.com/webpack01.14.0 - [NOT_FOUND] webpack01.14.0 not found
npm ERR! 404
npm ERR! 404 'webpack01.14.0@*' 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! C:\Users\dam\AppData\Local\npm-cache_logs\2022-04-05T03_04_35_667Z-debug-0.log

我的解答思路和尝试过的方法

求提问?

我想要达到的结果

你这样设置一下淘宝镜像
npm config set registry https://registry.npm.taobao.org/
然后再执行npm install webpack -g即可
ps:如果要安装指定版本,需要加@, 比如安装4.0,npm install webpack@4.0.0 -g,而你的命令如下

img

你没有加@来指定版本,webpack01.14.0他读取不到这个是个什么东西,所以才报404,找不到资源,另外如果你指定的版本不存在也会报404