react-native: command not found
来源:互联网 发布:淘宝订单要不要清洗 编辑:程序博客网 时间:2024/05/16 00:32
每次安装react-native都是出现不一样的问题,此次安装出现了如题,所言的问题:react-native: command not found
解决办法,在~/.bashrc中设置npm的环境变量
步骤
一、查看npm安转路径:
npm list -g | head -n 1
二、在.bashrc文件中添加:
export PATH=/opt/node/node-v8.9.3-linux-x64/lib/node_modules/npm/bin:$PATH
注意:/opt/node/node-v8.9.3-linux-x64/lib/node_modules/npm/bin是自己npm安装的路径。
如此问题解决
阅读全文
0 0
- react-native: command not found
- -bash: react-native: command not found
- React-Native在Mac系统终端命令出现adb:command not found解决方法
- [React-native] 报React/RCTBridgeModule.h' file not found
- [React-native] 报React/RCTBridgeModule.h' file not found
- React-Native 'RCTRootView.h' file not found AppDelegate.m
- react-native报错SDK location not found
- react-native run-android Android project not found
- React native Configuration with name 'default' not found.
- React Native 'boost/iterator/iterator_adaptor.hpp' file not found’解决方案
- React Native 日常报错 'config.h' file not found
- 【原】React Native踩坑系列之--Configuration with name 'default' not found react-native
- command :hadoop:command not found
- bash:command not found
- rz: command not found
- command not found 解决方法
- crontab:command not found
- LINUX command not found
- python MySQL 批量插入
- 输入几个数求平均值
- 百度起诉前高管:景驰科技创始人王劲 索赔5000万!
- SDUT ACM 实验九 大小写转换
- 比特币是不是庞氏骗局?
- react-native: command not found
- ImageTarget动态创建
- CentOS 7下安装QT5.8
- SDUT ACM 实验九 字符串分割
- APP支付宝支付
- 【Android Studio】在编译器中查看类的继承关系
- SDUT ACM 实验九 C语言实验——删除指定字符
- centos7 git 更新
- linux环境配置_20171223