Windows安装npm淘宝镜像npm ERR! errno -4048 npm ERR! code EPERM npm ERR! syscall unlink
- 【版权所有,文章允许转载,但须以链接方式注明源地址,否则追究法律责任】
- 【创作不易,点个赞就是对我最大的支持】
前言
仅作为学习笔记,供大家参考
总结的不错的话,记得点赞收藏关注哦!
一、报错信息
permissions of the file and its containing directories, or try running npm ERR!
npm ERR! code EPERM
npm ERR! syscall unlink
npm ERR! path D:\BanGong\eclipse\WorkSpeace\JooLun-wx\joolun-wx-ui\node_modules\.staging\ant-design-vue-a7f0335c\dist\antd-with-locales.min.js
npm ERR! errno -4048
npm ERR! Error: EPERM: operation not permitted, unlink 'D:\BanGong\eclipse\WorkSpeace\JooLun-wx\joolun-wx-ui\node_modules\.staging\ant-design-vue-a7f0335c\dist\antd-with-locales.min.js'
npm ERR! [OperationalError: EPERM: operation not permitted, unlink 'D:\BanGong\eclipse\WorkSpeace\JooLun-wx\joolun-wx-ui\node_modules\.staging\ant-design-vue-a7f0335c\dist\antd-with-lo
cales.min.js'] {
npm ERR! cause: [Error: EPERM: operation not permitted, unlink 'D:\BanGong\eclipse\WorkSpeace\JooLun-wx\joolun-wx-ui\node_modules\.staging\ant-design-vue-a7f0335c\dist\antd-with-local
es.min.js'] {
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'D:\\BanGong\\eclipse\\WorkSpeace\\JooLun-wx\\joolun-wx-ui\\node_modules\\.staging\\ant-design-vue-a7f0335c\\dist\\antd-with-locales.min.js'
npm ERR! },
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'unlink',
npm ERR! path: 'D:\\BanGong\\eclipse\\WorkSpeace\\JooLun-wx\\joolun-wx-ui\\node_modules\\.staging\\ant-design-vue-a7f0335c\\dist\\antd-with-locales.min.js',
npm ERR! parent: '@smallwei/avue'
npm ERR! }
npm ERR!
npm ERR! The operation was rejected by your operating system.
npm ERR! It's possible that the file was already in use (by a text editor or antivirus),
npm ERR! or that you lack permissions to access it.
npm ERR!
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.npm ERR! A complete log of this run can be found in:
npm ERR! D:\BanGong\npm\node_cache\_logs\2022-06-01T01_48_26_519Z-debug.log
二、解决方法
点击Windows按键,搜索命令提示符,如图:(一定要点击以管理员身份运行)
我项目在d盘输入 d: 然后一步一步找到项目路径的前台项目下(如图)
输入:
npm install -g cnpm --registry=https://registry.npm.taobao.org --verbose
等待下载,结果如图:
注:如还是不能npm run dev按我的方法走一遍,删除node_modules文件重新走一遍
1.npm install --registry=https://registry.npm.taobao.org2. 如提示‘vue-cli-service‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。执行:
npm install -g @vue/cli-service3,安装vue,输入命令npm install vue4,安装vue-cli,输入命令npm install --global vue-cli5.(如报这个错A complete log if this run can be found in)执行全局更新
npm install npm -g
或者用淘宝镜像命令
cnpm install npm -g
查看node与npm版本是否匹配
指定npm版本命令:npm install -g npm@6.14.5
如果报这个错,node版本过低,下载个nvm,之后安装nvm install 14.1.0
npm ERR! vote@1.0.0 dev: `vite`
问题记录
报这个错,npm install --forace
如果帮助到你,三连顶一下,创作不易~
公众号:程序员温眉
CSDN:程序员温眉
每天进步一点点的程序员
Windows安装npm淘宝镜像npm ERR! errno -4048 npm ERR! code EPERM npm ERR! syscall unlink相关推荐
- npm报错error code EPERM, error syscall unlink,errno -4048解决
安装报错信息 24741 error code EPERM 24742 error syscall unlink 24743 error path E:\workspaces\multiplatfor ...
- npm安装cnpm淘宝镜像下载包工具
npm为国外服务器,下载速度很慢,用时需要翻墙. 安装淘宝的npm镜像就可以更快的下载包工具. 首先要有npm包管理工具,在node官网下载, node官网:https://nodejs.org/en ...
- nrm切换npm淘宝镜像安装依赖
开发过程中一般会使用npm install 进行安装依赖包,国内用户进行安装时速度会很慢,如何提升速度呢?我们的处理办法是通过淘宝镜像进行安装,npm 如何切换成淘宝镜像地址呢? 之前我们会通过 // ...
- 可爱的NPM 淘宝镜像
可爱的NPM 淘宝镜像 以下两个方案 1. 以下添加以下设置 # 注册模块镜像 npm set registry https://registry.npm.taobao.org # node-gyp ...
- NPM淘宝镜像(最新版本)于2021-11-21 16:53:52发布新版本npm镜像
2021-11-21 16:53:52 npm淘宝镜像更换新域名 新域名为淘宝 NPM 镜像 新版本使用镜像有以下两种方式: 1.你可以使用我们定制的 cnpm (gzip 压缩支持) 命令行工具代 ...
- npm淘宝镜像和查看镜像设置
1.通过cnpm使用淘宝镜像: npm install -g cnpm --registry=https://registry.npm.taobao.org 2.将cnpm设置为淘宝镜像: cnpm ...
- npm 淘宝镜像配置一直无效的可能原因
npm 淘宝镜像配置一直无效的可能原因 修改npm镜像地址为国内淘宝镜像 npm config set registry https://registry.npm.taobao.org 网上搜罗npm ...
- node安装cnpm淘宝镜像
1.npm install -g cnpm --registry=https://registry.npm.taobao.org 安装cnpm淘宝镜像. 2.如果报错无权限,则需要用管理员身份运行并且 ...
- 安装git 淘宝镜像
安装git 淘宝镜像 1. https://npm.taobao.org/mirrors/git-for-windows/ 2.自行选择下载 3.安装默认一路next可安装完成 4.百度ssh配置 5 ...
最新文章
- 极速开发之Spring Boot五种热部署方式
- 珠海网络推广浅析网站优化面对搜索引擎算法更新怎样才能应对自如?
- 更改多维数组的数据结构形式
- Spark RDD中cache和persist的区别
- 谷歌推出了其首款触屏笔记本电脑
- 销货清单数据_2020年8月数据科学阅读清单
- python google drive api_使用google-drive-api python获取文件的链接
- 【codevs1227】方格取数2,费用流
- 在html中代码规范是哪个键,HTML代码规范经验
- 95-40-060-java.util.concurrent-ConcurrentSkipListMap
- 超市收银机属于通用计算机,我是一名刚入超市做收银的,我录入货品后微信收钱之后没有在超市电脑上按确定导入账目导致超市系统上多出来钱这改正过来会很难吗?...
- HDU4619--Warm up 2
- linux服务之NTP及chrony时间同步
- 页面响应式布局时,网页图片不缩放
- Wwise + GME游戏语音方案:解锁更多语音玩法,让玩家“声临其境”
- 微分中值定理 (罗尔、拉格朗日、柯西)
- epoll中的ET和LT模式区别
- 绝对值abs为负数引发的神秘滑行
- Python--抽奖概率统计测试
- 51nod 1526 分配笔名(字典树)
热门文章
- python的for语句中i未被定义_独特的python循环语句
- python分隔符是干啥_python文件路径分隔符的详细分析
- 微信JSSDK与NodeJS深度整合
- Phoenix安装与两种方式使用
- 乘法口诀标的打印及解释
- LambdaQueryWrapper使用 group分组、sum聚合函数 进行统计,并分页排序
- python np array 减去一个数_python numpy减去矩阵元素
- date js 减去_JS日期减去8小时(北京时间转UTC)
- Android Studio 解决手机无法识别问题
- 深度linux运行windows游戏,在深度Linux玩Windows游戏,可以这样安装wine的最新版