首页 文章

Npm安装角度/ cli错误EPERM操作不允许

提问于
浏览
-1

4399错误错误:EPERM:不允许操作,取消链接'C:\ Users \ deven \ AppData \ Roaming \ npm \ node_modules.staging \ tmp-5fcc012e \ README.md'4399错误{错误:EPERM:不允许操作,取消链接'C:\ Users \ deven \ AppData \ Roaming \ npm \ node_modules.staging \ tmp-5fcc012e \ README.md'4399错误原因:4399错误{错误:EPERM:操作不允许,取消链接'C:\ Users \ deven \ AppData \ Roaming \ npm \ node_modules.staging \ tmp-5fcc012e \ README.md'4399错误错误:-4048,4399错误代码:'EPERM',4399错误系统调用:'unlink',4399错误路径:'C:\ Users \ deven \ AppData \ Roaming \ npm \ node_modules \ .staging \ tmp-5fcc012e \ README.md'},4399错误堆栈:'错误:EPERM:操作不允许,取消链接'C:\ Users \ deven \ AppData \ Roaming \ npm \ node_modules \ .staging \ tmp-5fcc012e \ README.md '',4399错误错误:-4048,4399错误代码:'EPERM',4399错误系统调用:'unlink',4399错误路径:'C:\ Users \ deven \ AppData \ Roaming \ npm \ node_modules \ .staging \ tmp-5fcc012e \ README.md',4399错误父:'@ angular / cli'} 4400错误您的操作系统拒绝了该操作 . 4400错误文件可能已被使用(通过文本编辑器或防病毒),4400错误或您无权访问它 . 4400错误4400错误如果您认为这可能是权限问题,请仔细检查文件及其包含目录的4400错误权限,或尝试以root / Administrator再次运行4400错误命令(尽管不建议这样做) . 4401详细退出[-4048,true]

2 回答

  • 1

    由于你正在使用 Windows ,你必须启动终端 as administrator 并重试应该工作 .

  • 0

    这似乎是npm的一个问题 . 尝试删除node_modules文件夹并再次运行 npm install . 这应该可以解决问题 .

相关问题