安装vue发生异常:npm ERR! the command again as root/Administrator.

时间:2024-10-21 20:51:04

一、异常

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.
 

二、原因

使用管理员身份安装

三、解决