ps41:前端知识点-npm包管理工具

博客主要介绍了npm包管理工具的使用,npm是前端开发中常用的工具,与node.js密切相关,能帮助开发者高效管理项目依赖。

41. nmp包管理工具的使用

请添加图片描述

切换华为云镜像后为什么有些还是淘宝的镜像PS D:\project-sky-admin-vue-ts2> npm install https://mirrors.huaweicloud.com/repository/npm/element-ui/-/element-ui-2.13.0.tgz --legacy-peer-deps --verbose npm verbose cli D:\桌面\node.exe D:\桌面\node_modules\npm\bin\npm-cli.js npm info using npm@10.9.0 npm info using node@v22.11.0 npm verbose title npm install https://mirrors.huaweicloud.com/repository/npm/element-ui/-/element-ui-2.13.0.tgz npm verbose argv "install" "https://mirrors.huaweicloud.com/repository/npm/element-ui/-/element-ui-2.13.0.tgz" "--legacy-peer-deps" "--loglevel" "verbose" npm verbose logfile logs-max:10 dir:C:\Users\ASUS\AppData\Local\npm-cache\_logs\2025-07-29T03_54_53_483Z- npm verbose logfile C:\Users\ASUS\AppData\Local\npm-cache\_logs\2025-07-29T03_54_53_483Z-debug-0.log npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/element-ui/-/element-ui-2.13.0.tgz 1520ms (cache miss) npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/@types%2fecharts 122ms (cache updated) npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/@types%2fwebpack 270ms (cache updated) npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/area-data 72ms (cache updated) npm http fetch GET https://registry.npm.taobao.org/axios/download/axios-0.19.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faxios%2Fdownload%2Faxios-0.19.0.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/axios/download/axios-0.19.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faxios%2Fdownload%2Faxios-0.19.0.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/axios/download/axios-0.19.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Faxios%2Fdownload%2Faxios-0.19.0.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/echarts 586ms (cache updated) npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/element-ui/-/element-ui-2.13.0.tgz 38ms (cache hit) npm http fetch GET https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/js-cookie/download/js-cookie-2.2.1.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/md5 918ms (cache miss) npm http fetch GET https://registry.npm.taobao.org/moment/download/moment-2.24.0.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/moment/download/moment-2.24.0.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/moment/download/moment-2.24.0.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/normalize.css/download/normalize.css-8.0.1.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/normalize.css/download/normalize.css-8.0.1.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/normalize.css/download/normalize.css-8.0.1.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/nprogress/download/nprogress-0.2.0.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/nprogress/download/nprogress-0.2.0.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/nprogress/download/nprogress-0.2.0.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-3.2.0.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-3.2.0.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/path-to-regexp/download/path-to-regexp-3.2.0.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/register-service-worker/download/register-service-worker-1.6.2.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/register-service-worker/download/register-service-worker-1.6.2.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/register-service-worker/download/register-service-worker-1.6.2.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue/download/vue-2.6.10.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue/download/vue-2.6.10.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue/download/vue-2.6.10.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET 200 https://mirrors.huaweicloud.com/repository/npm/vue-area-linkage 542ms (cache miss) npm http fetch GET https://registry.npm.taobao.org/vue-class-component/download/vue-class-component-7.1.0.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue-class-component/download/vue-class-component-7.1.0.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue-class-component/download/vue-class-component-7.1.0.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue-property-decorator/download/vue-property-decorator-8.3.0.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue-property-decorator/download/vue-property-decorator-8.3.0.tgz attempt 2 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue-property-decorator/download/vue-property-decorator-8.3.0.tgz attempt 3 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue-router/download/vue-router-3.1.3.tgz?cache=0&sync_timestamp=1572571382028&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.1.3.tgz attempt 1 failed with CERT_HAS_EXPIRED npm http fetch GET https://registry.npm.taobao.org/vue-router/download/vue-router-3.1.3.tgz?cache=0&sync_timestamp=1572571382028&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fvue-router%2Fdownload%2Fvue-router-3.1.3.tgz attempt 2 failed with CERT_HAS_EXPIRED \
07-30
PS F:\mindpower2025\ruoyi-ui> npm install npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: '@achrinza/node-ipc@9.2.2', npm warn EBADENGINE required: { node: '8 || 10 || 12 || 14 || 16 || 17' }, npm warn EBADENGINE current: { node: 'v18.20.8', npm: '10.8.2' } npm warn EBADENGINE } npm warn EBADENGINE Unsupported engine { npm warn EBADENGINE package: '@achrinza/node-ipc@9.2.2', npm warn EBADENGINE required: { node: '8 || 10 || 12 || 14 || 16 || 17' }, npm warn EBADENGINE current: { node: 'v18.20.8', npm: '10.8.2' } npm warn EBADENGINE } npm warn deprecated q@1.5.1: You or someone you depend on is using Q, the JavaScript Promise library that gave JavaScript developers strong feelings about promises. They can almost certainly migrate to the native JavaScript promise now. Thank you literally everyone for joining me in this bet against the odds. Be excellent to each other. npm warn deprecated npm warn deprecated (For a CapTP with native promises, see @endo/eventual-send and @endo/captp) npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated highlight.js@9.18.5: Support has ended for 9.x series. Upgrade to @latest npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated rimraf@3.0.2: Rimraf versions prior to v4 are no longer supported npm warn deprecated uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details. npm warn deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm warn deprecated svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x. npm warn deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js. added 154 packages, removed 2142 packages, changed 246 packages, and audited 5521 packages in 5m 153 packages are looking for funding run `npm fund` for details 95 vulnerabilities (4 low, 61 moderate, 22 high, 8 critical) To address issues that do not require attention, run: npm audit fix To address all issues possible (including breaking changes), run: npm audit fix --force Some issues need review, and may require choosing a different dependency. Run `npm audit` for details. npm notice npm notice New major version of npm available! 10.8.2 -> 11.6.0 npm notice Changelog: https://github.com/npm/cli/releases/tag/v11.6.0 npm notice To update run: npm install -g npm@11.6.0 npm notice
最新发布
09-19
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值