react笔记

版权声明:欢迎转载,附带链接。 https://blog.csdn.net/janronehoo/article/details/82771408

以杀死占用了80端口的进程为例:

1、根据端口号“80”查找进程号
netstat -ano|findstr "80"
TCP    0.0.0.0:80             0.0.0.0:0              LISTENING       7796


2、根据进程号“7796”查找进程名
tasklist|findstr 7796
java.exe                      7796 Console                    1     57,368 K


3、根据进程名杀死进程
taskkill /f /t /im java.exe
成功: 已终止 PID 7796 (属于 PID 9052 子进程)的进程

Unable to load script from assets 'index.android.bundle' 出错?
野路子太多,坑人真的!F**k
言归正传,当你运行 react native 程序的时候出现这个错误 ,如果您使用Windows,
请按以下方式运行命令,或者如果出现错误“无法找到条目文件index.android.js”,
那么我这一招能救你
第一步(创建缺失的目录):mkdir android\app\src\main\assets

第二步(在创建好的目录添加程序需要的文件):react-native bundle --platform android --dev false --entry-file index.js --bundle-output android/app/src/main/assets/index.android.bundle --assets-dest android/app/src/main/res
第三步:react-native run-android
好了,继续嚼着黄连敲代码吧!

猜你喜欢

转载自blog.csdn.net/janronehoo/article/details/82771408