问题描述:安装npm报错 : ERR! code EPERM ,npm ERR! syscall symlink
(node:15200) ExperimentalWarning: The fs.promises API is experimental
npm ERR! code EPERM
npm ERR! syscall symlink
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.
原因分析:
看最后一行 the command again as root/Administrator 需要管理员身份运行解决方案:
以管理员取得cmd窗口权限,右击,管理员取得所有权