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重启后安装

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

    评论

报告相同问题?

悬赏问题

  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用