首页 > 其他 > 详细

运行npm安装wepy2踩坑——error EEXIST 问题

时间:2020-04-09 19:52:20      阅读:687      评论:0      收藏:0      [点我收藏+]

windows 10安装wepy2

以前用过wepy1,现在要学习wepy2,运行以下命令出错

npm install @wepy/cli -g # 全局安装 WePY CLI 工具

 

打开log文件,与cmd界面提示一致,提示错误如下:

11758 error code EEXIST

11759 error path C:\Users\my\AppData\Roaming\npm\node_modules\@wepy\cli\bin\wepy.js

11760 error dest C:\Users\my\AppData\Roaming\npm\wepy

11761 error EEXIST: file already exists, cmd shim ‘C:\Users\my\AppData\Roaming\npm\node_modules\@wepy\cli\bin\wepy.js‘ -> ‘C:\Users\my\AppData\Roaming\npm\wepy‘

11762 error File exists: C:\Users\my\AppData\Roaming\npm\wepy

11763 error Remove the existing file and try again, or run npm

11764 error with --force to overwrite files recklessly.

根据提示判断我之前安装的wepy1与现在的wepy2安装有冲突,

找到目录C:\Users\my\AppData\Roaming\npm下删除文件wepy.js,

重新运行npm install @wepy/cli -g ,根据提示删除wepy,wepy.cmd

运行npm install @wepy/cli -g 安装成功。

运行npm安装wepy2踩坑——error EEXIST 问题

原文:https://www.cnblogs.com/guoby/p/12668930.html

(1)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!