使用npm install报错-4048 operation not permitted解决
来源:互联网 发布:老人坐便椅子淘宝网 编辑:程序博客网 时间:2024/05/16 15:40
这几天使用npm install时一直报错-4048 operation not permitted,也尝试了多种方法,终于使问题得到解决,这里总结几种方法,先贴图:
一:权限问题
首先看到operation not permitted我们能想到权限问题,所以这时候我们可以以管理员身份运行cmd或者直接快捷键Win+X来打开。
二:依赖包错误
如上图,根据错误日志我们可以明显看到这个错误minimatch版本过低和dashdash错误,我们只要全局安装好这两个包问题就可以得到完美解决。
当我们在npm install或者通过npm install安装好一些脚手架如vue-cli或者angular-cli等,而后构建项目时报错,我们可以通过错误提示正确全局安装好所需要的依赖包就好了。
一般在这种情况下我们需要重点看operation not permitted后面这个关键单词和后面的目录。
三:npm版本问题
npm最新版本5.4.0在安装包时有些缺少依赖包,这种情况就需要我们安装低一点的npm版本:npm i -g npm@5.3.0(这里填写你需要的指定版本)。
以上是个人根据自己遇到情况总结的一些方法,当然重点在看自己的错误日志提示。
阅读全文
0 0
- 使用npm install报错-4048 operation not permitted解决
- 使用npm install报错-4048 operation not permitted问题
- npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
- npm install 安装软件,出现 operation not permitted, mkdir
- npm install 安装软件,出现 operation not permitted, mkdir 解决办法
- react-native ERROR EPERM: operation not permitted报错解决
- ifconfig报错:SIOCSIFFLAGS: Operation not permitted
- npm: 2.15.1 should be >= 3.0.0 npm install express operation not permitted
- npm install 失败 operation not permitted, scandir 'E:\vue-test\node_modules\fsevents\node_modules'
- npm install 解决报错
- 解决docker执行systemctl start 报错Failed to get D-Bus connection: Operation not permitted
- pip install operation not permitted 解决办法
- Ubuntu下调试Qt报错ptrace operation not permitted
- Ubuntu下调试Qt报错ptrace operation not permitted
- pod 报错 Operation not permitted - /usr/bin/pod
- Mac安装jekyll报错Operation not permitted
- 【shell】执行shell脚本报错 Operation not permitted处理
- Mac ln命令报错:Operation not permitted
- 搭建FTP文件服务
- PHP之static静态变量详解(二)
- 04-nginx服务器的安装,redis安装,前端部署
- 几本自然语言处理入门书
- Oracle 基础
- 使用npm install报错-4048 operation not permitted解决
- 让 UIView 显示一个图片
- 深度学习在自然语言处理的应用
- 菜鸟学习微信小程序之数据绑定
- python mysql 字段与关键字冲突解决
- Spring Framework 5.0.0下载
- 算法导论第3章习题解析
- C++里面的深拷贝和浅拷贝
- ssm之helloworld