npm install 错误-ERRNO-4080

目录

问题描述

问题分析

解决办法


问题描述

在cmd中创建vue项目时,使用npm install命令报错ERROR-4080

问题分析

1.npm ERR! If you believe this might be a permissions issue, please double-check the

提示存在权限问题
2.npm ERR! permissions of the file and its containing directories, or try running

请检查文件及其目录的权限
3.npm ERR! the command again as root/Administrator.

请以root身份运行命令

可以知道是由于普通用户权限不足导致的

解决办法

1.找到nodejs文件的安装位置,右击进入【属性】-【安全】

2.修改Users的权限,将【完全控制】【修改】改为允许

2.点击【应用】和【确定】

猜你喜欢

转载自blog.csdn.net/hongyinvjianke/article/details/130272682