-bash: /usr/local/bin/react-native: No such file or directory

执行react-native run-android/run-ios的时候出现

解释一下出现问题的大背景:本来这个命令是能运行的,只因为我再网上下载了一个开源的react-native项目,然后执行命令npm install插入node_modules模块后,不仅这个项目无法执行运行命令,其他的项目也不可以了。

大概原因:可能是我再插入node_modules模块的时候把全局设置删掉了。所以解决办法是再插入一遍就ok了。

解决办法:执行如下命令

sudo npm install -g react-native-cli

插入成功后再执行就ok了

时间: 2024-10-18 08:07:07

-bash: /usr/local/bin/react-native: No such file or directory的相关文章

CentOS安装软件出现错误:bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

CentOS安装软件出现错误: bash: /usr/local/bin/rar: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directorygoogle了一把才发现是64位系统中安装了32位程序解决方法:yum install glibc.i686 重新安装以后还有如下类系错误 再继续安装包 error while loading shared libraries: libstdc++.so.6: cannot open

mac 无法ssh localhost,错误提示:bash: /usr/local/bin/ssh_session: Permission denied

在网上找了很久也没有找到解决方案,最后根据提示自己摸索如下: 1.编辑/etc/sshd_config文件,注释掉#ForceCommand /usr/local/bin/ssh_session 2.启动sshd服务:sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist 3.停止sshd服务:sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist 4查

-bash: /usr/local/Java/jdk1.8.0_241/bin/java: No such file or directory

错误: [[email protected] Java]# java -version -bash: /usr/local/Java/jdk1.8.0_241/bin/java: No such file or directory 原因:64位操作系统装了32为,重新装一个64位即可,在Linux中64位只能装64位 Linux中查看位数的命令: [[email protected] ~]# getconf LONG_BIT 64 [[email protected] ~]# 原文地址:http

linux usr/bin/和 usr/local/bin之间的关系; 什么是软链接等等; 如何更改默认python版本;

今天为了安装 Anaconda, 就想把系统默认的python2.7版本改为python3.6版本:在网上查了一些命令: sudo rm /usr/bin/python sudo ln -s /usr/local/bin/python3.4 /usr/bin/python 结果是没有反应:仔细研究了半天,发现我的python3.5并不是安装在 /usr/local/bin/python3.4而是在 /usr/bin/python3.5 里面 这里明白了 /usr/bin 和/usr/local/

linux 系统中的 /bin /sbin /usr/bin /usr/sbin /usr/local/bin /usr/local/sbin 目录的区别

先来段英文的: /bin This directory contains executable programs which are needed in single user mode and to bring the sys‐ tem up or repair it. /sbin Like /bin, this directory holds commands needed to boot the system, but which are usually not executed by n

/usr/local/bin is not writable mac

sudo chown -R yourusename:admin /usr/local/bin Mac-Pro:local user$ brew install imagemagick Error: You must `brew link jpeg' before imagemagick can be installed Mac-Pro:local user$ brew link jpeg Linking /usr/local/Cellar/jpeg/8d... Error: Could not

mac下/usr/local/bin No such file or directory问题解决

在对composer进行全局配置时,执行 sudo mv composer.phar /usr/local/bin/composer 时,mac报错:/usr/local/bin No such file or directory . 分析原因,在finder中command+shift+G进入目录,确实也找不到 /usr/local/bin/composer ,包括在终端中也进不到该目录. 参考:https://stackoverflow.com/questions/25654731/usr-

Linux下/usr/bin与/usr/local/bin/区别总结

Linux下/usr/bin与/usr/local/bin/区别总结 2017年10月13日 12:30:17 2puT 阅读数:15930 版权声明:本文为博主原创文章! github地址:https://github.com/lina-not-linus 博客地址: https://blog.csdn.net/Lina_ACM/article/details/78224656 一. 很多应用都安装在/usr/local下面,那么,这些应用为什么选择这个目录呢?理解了最根源的原因后,也许对你理

全局安装npm i -g @vue/cli的时候一直出现File exists: /usr/local/bin/vue

最近用vue cli3.0全局安装的时候,一直报错 如下图: 其实他的下面一句已经提示我们了(Remove the existing file and try again, or run npm),删除现有的文件并且重试 直接前往/usr/local/bin/vue 找到这个vue文件然后删除,在重新全局安装,就可以了 原文地址:https://www.cnblogs.com/yhhBKY/p/12187433.html