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

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 MATLAB动图的问题
  • ¥15 求差集那个函数有问题,有无佬可以解决
  • ¥15 【提问】基于Invest的水源涵养
  • ¥20 微信网友居然可以通过vx号找到我绑的手机号
  • ¥15 寻一个支付宝扫码远程授权登录的软件助手app
  • ¥15 解riccati方程组
  • ¥15 display:none;样式在嵌套结构中的已设置了display样式的元素上不起作用?
  • ¥15 使用rabbitMQ 消息队列作为url源进行多线程爬取时,总有几个url没有处理的问题。
  • ¥15 Ubuntu在安装序列比对软件STAR时出现报错如何解决
  • ¥50 树莓派安卓APK系统签名