npm安装多次失败,出现EPERM错误

时间:2019-05-03 03:15:36

标签: npm windows-10 npm-install

npm-install最近向我显示此错误,我不知道。以前工作正常。我正在使用Windows并尝试运行 npm install -g create-react-app

路径C:\ Users \ dell \ AppData \ Roaming \ npm \ node_modules.staging

npm错误!代码EPERM

npm错误! errno -4048

npm错误! syscall取消链接

npm错误!错误:EPERM:不允许该操作,请取消链接“ C:\ Users \ dell \ AppData \ Roaming \ npm \ node_modules.staging”

npm错误! {[[错误:EPERM:不允许该操作,请取消链接'C:\ Users \ dell \ AppData \ Roaming \ npm \ node_modules.staging']

npm错误!堆: npm ERR! '错误:EPERM:不允许操作,取消链接\'C:\ Users \ dell \ AppData \ Roaming \ npm \ node_modules \ .staging \'', npm ERR! errno:-4048, npm ERR!代码:“ EPERM”, npm ERR! syscall:'unlink', npm ERR!路径: npm ERR! 'C:\ Users \ dell \ AppData \ Roaming \ npm \ node_modules \ .staging'}

npm错误! npm ERR!该操作被您的操作系统拒绝。 npm ERR!该文件可能已被使用(通过文本编辑器或防病毒软件), npm ERR!或者您没有访问权限。 npm ERR! npm ERR!如果您认为这可能是权限问题,请仔细检查 npm ERR!文件及其包含目录的权限,或尝试运行 npm ERR!再次以root / Administrator身份执行命令(尽管不建议这样做)。

0 个答案:

没有答案
相关问题