wzhuwzhu
wzhuwzhu
2018-11-14 07:13

cnpm安装antd失败: unknown error, symlink

  • antd
  • npm
  • react

从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条回答