ios - 我想重新安装expo-cli,但是有错误。并且无法卸载expo-cli
问题描述
我尝试通过expo构建应用程序但失败了,我尝试重新安装expo-cli。所以,我输入了下面的代码来删除 expo-cli。
npm -g uninstall expo-cli --save
和
(base) Bongui-MacBookPro:expo-firebase-master bong$ npm uninstall expo-cli -g
up to date in 0.042s
但是,如果我键入 expo,它将运行。
所以如果你再次忽略它并尝试重新安装expo-cli,就会出现以下错误:
npm ERR! code EEXIST
npm ERR! syscall symlink
npm ERR! path ../lib/node_modules/expo-cli/bin/expo.js
npm ERR! dest /Users/bong/npm-global/bin/expo-cli
npm ERR! errno -17
npm ERR! EEXIST: file already exists, symlink '../lib/node_modules/expo-cli/bin/expo.js' -> '/Users/bong/npm-global/bin/expo-cli'
npm ERR! File exists: /Users/bong/npm-global/bin/expo-cli
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/bong/.npm/_logs/2020-01-28T09_18_38_604Z-debug.log
谢谢各位老师。请帮我解决问题。谢谢你。
解决方案
我认为您可能希望在构建时覆盖当前文件夹。尝试--force
在您的命令中使用扩展名,这将解决问题。我想是这样的:npm install -g --force expo-cli
我希望这会有所帮助。
推荐阅读
- git - 不能 git add 。它显示警告:无法打开目录
- javascript - 如何在引导模式类中正确更新 v-for 道具的值
- javafx - observableList 不显示循环中的行吗?
- shell - 在编译 Readline 时未定义对“tputs”的引用
- django - 连接django和oracle数据库
- r - 检查当前日期是否在日期期间间隔之间,并将每个日期的结果导出到单独的 Excel 表上
- php - Docker Compose LAMP 堆栈不提供 index.php
- c - 了解列表中引用调用的函数
- javascript - 将html转换为图像/画布时如何让GIF动画工作
- html - 网页右侧的导航滑块(大部分)的名称是什么?