wzhuwzhu 2018-11-14 07:13 采纳率: 0%
浏览 2624

cnpm安装antd失败: unknown error, symlink

从cmd改成git-bash,尝试cnpm,npm install antd --save --no-bin-links 都失败,报错:
× Install fail! Error: UNKNOWN: unknown error, symlink 'E:\workspace\181104\react1104\node_modules_enquire.js@2.1.6@enquire.js' -> 'E:\workspace\181104\react1104\node_modules_antd@3.10.7@antd\node_modules\enquire.js'
Error: UNKNOWN: unknown error, symlink 'E:\workspace\181104\react1104\node_modules_enquire.js@2.1.6@enquire.js' -> 'E:\workspace\181104\react1104\node_modules_antd@3.10.7@antd\node_modules\enquire.js'
npminstall version: 3.15.0
npminstall args: D:\Program Files\nodejs\node.exe D:\Program Files\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\wzhu.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org --save antd --no-bin-links

npm ERR! path E:\workspace\181104\react1104\node_modules\css-animation
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access 'E:\workspace\181104\react1104\node_modules\css-animation'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

请教有没有高手知道咋解决?多谢!

  • 写回答

2条回答

  • wzhuwzhu 2018-11-15 00:24
    关注

    解决方法:

    1. 使用win+x,选择命令提示符(管理员),在里面运行命令就好了。
    2. 执行npm cache clean重启后安装

    不知道为啥,但是可以试试

    评论

报告相同问题?

悬赏问题

  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作
  • ¥15 求NPF226060磁芯的详细资料