不知道什么原因,下载不了依赖

来源:5-1 前端项目初始化

慕函数3251815

2022-07-17

$ cnpm i
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN config global --global, --local are deprecated. Use --location=global instead.
npm WARN config global --global, --local are deprecated. Use --location=global instead.
| [0/54] Installing tui-editor@1.3.3[tui-editor@1.3.3 › squire-rte@github:sohee-lee7/Squire#b1e0e1031fa18912d233c204cbe7c7fae4a42621] install squire-rte from git squire-rte@github:sohee-lee7/
Squire#b1e0e1031fa18912d233c204cbe7c7fae4a42621, may be very slow, please keep patience
/ [53/54] Installing tui-color-picker@^2.2.1[tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] install raphael from git raphael@git+https://github.
com/nhn/raphael.git#2.2.0-c, may be very slow, please keep patience
× Install fail! Error: [tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] An unknown git error occurred
Error: [tui-editor@1.3.3 › tui-chart@3.11.3 › raphael@git+https://github.com/nhn/raphael.git#2.2.0-c] An unknown git error occurred
at module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\download\git.js:36:11)
at async module.exports (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\download\index.js:17:12)
at async _install (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\install.js:124:16)
at async install (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\install.js:25:12)
at async mapper (C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\lib\install.js:265:9)
npminstall version: 6.4.0
npminstall args: F:\软件安装\nodejs\node.exe C:\Users\Administrator\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Use
rs\Administrator.cnpmrc --disturl=https://npmmirror.com/mirrors/node --registry=https://registry.npmmirror.com

写回答

1回答

扬_灵

2022-07-18

同学你好,依赖部分原因是因为他是国外的,你可以切换淘宝镜像试一下,也可参考这篇文档(7条消息) 问题解决--npm install 安装依赖一直失败_一川时刻的博客-CSDN博客

0
0

Vue Element+Node.js开发企业通用管理后台系统

基于Element的中后台课程,一套中小型企业通用的后台管理系统

2829 学习 · 1714 问题

查看课程