npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法
Posted 笑嘻嘻的小银
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法相关的知识,希望对你有一定的参考价值。
查了一下,不是权限的问题,是缓存的问题,解决方法有2
1、
需要删除npmrc文件。
强调:不是nodejs安装目录npm模块下的那个npmrc文件
而是在C:\\Users\\{账户}\\下的.npmrc文件..
2、
或者直接用命令清理就行,控制台输入:
npm cache clean --force
以上是关于npm install 报错(npm ERR! errno -4048,Error: EPERM: operation not permitted,)解决方法的主要内容,如果未能解决你的问题,请参考以下文章
npm install 报错(npm ERR! code EPERM npm ERR! syscall mkdir npm ERR! path D: ode.jsodejs)
npm install 报错(npm ERR! errno 1)
输入npm install 报错npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! node-sass@4.13.1 postinstall: `no
npm install的时候报错 npm err code 1
npm install 报错:ERR! code EINTEGRITY 解决方案
npm install报错 npm ERR! enoent ENOENT: no such file or directory