> react-native run-android
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
Jetifier found 2217 file(s) to forward-jetify. Using 8 workers...
info JS server already running.
info Installing the app...
error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details.
Error: spawn ./gradlew EACCES
at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! demoxxxx@0.0.1 android: `react-native run-android`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the demoxxxx@0.0.1 android script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/xxx/.npm/_logs/2022-06-08T03_28_52_495Z-debug.log
有可能是权限没配的问题,运行项目执行的 ./gradlew 脚本没有权限的问题,解决如下:
就是给./gradlew配置执行权限
chmod +x android/gradlew
然后在执行
npm run android
执行 npm run android 遇到的问题如下有可能是权限没配的问题,运行项目执行的 ./gradlew 脚本没有权限的问题,解决如下:就是给./gradlew配置执行权限 然后在执行完美解决
[1] [10:00:53.462] [info] Cannot run installer: error code: E
ACCES
, error messag
e: "
spawn
E
ACCES
", will be executed again using elevate if E
ACCES
"
[1] [10:00:53.489] [error] Error: Error:
spawn
D:\project\app-electro
n\node_modules\elect...
第三次尝试在线图床
之前用typora写markdown笔记,然后复制粘贴到CSDN博客上来发布博客,但是照片却是本地照片,所以还需要一张一张上传才能在博客上显示。这样太麻烦了。也尝试过用图床,但是失败了。
typora使用体验——wsdchong
如何在GitHub上建立图库
参考了两篇博客。但是都没成功。
如何直接在github上建图床
PicGo+Github图床,让markdown飞
不过这次遇到新的转机。有一篇最近没多久的博客写了图床的教程,看情况可以尝试一下。
Typora+PicGo图床
Error:
spawn
cmd ENOENT
at
Process
.
Child
Process
._
handle
.on
exit
(
internal
/
child
_
process
.
js
:
264
:
19
)
at onErrorNT (
internal
/
child
_
process
.
js
:456:16)
at
process
TicksAndRejec
[0] Error occurred when executing command: npm run serve
[0] Error:
spawn
cmd.exe ENOENT
[0] at
Process
.
Child
Process
._
handle
.on
exit
(
internal
/
child
_
process
.
js
:
264
:
19
)
[0] at onErrorNT (interna...
Error:
spawn
cmd ENOENT
at
Process
.
Child
Process
._
handle
.on
exit
(
internal
/
child
_
process
.
js
:269:
19
)
at onErrorNT (
internal
/
child
_
process
.
js
:465:16)
虽然不知道为什么,但是电脑自动升级重启之后,npm start 开始报错
events.
js
:187
throw er; // Un
handle
d 'error' event
Error:
spawn
cmd ENOENT
at
Process
.
Child
Process
._
handle
.on
exit
(
internal
/
child
_
process
.
js
:
264
:
19
)
at onErrorNT (
internal
/chi
An un
handle
d exception has occurred inside Forge:
spawn
/pos/ectrons---cs/node_modules/electron/dist/electron.exe E
ACCES
Error:
spawn
/pos/ectrons---cs/node_modules/electron/dist/electron.exe E
ACCES
at
Process
.
Child
Process
._
handle
.on
exit
(node:
internal
/
child
_
process
:285:
19
) at onErrorNT (node:
internal
/
child
_
process
:485:16) at
process
TicksAndRejections (node:
internal
/
process
/task_queues:83:21)
这个问题通常意味着您没有足够的权限来执行Electron Forge。您可以尝试以下步骤来解决此问题:
1. 确保您的计算机上已安装Node.
js
和Electron Forge。
2. 检查您的系统是否已安装Electron,并且它是否位于正确的位置。您可以尝试使用以下命令检查Electron的版本:
electron --version
如果出现“命令未找到”错误,请安装Electron:
npm install -g electron
3. 检查您是否有足够的权限来运行Electron Forge。您可以尝试使用以下命令提升权限:
sudo chmod -R 777 /pos/ectrons---cs/node_modules/electron
sudo chown -R $USER /pos/ectrons---cs/node_modules/electron
这将确保您的用户拥有读取和写入Electron文件的权限。
4. 如果您使用了Windows操作系统,请尝试将您的命令行窗口以管理员身份运行,并尝试重新运行您的程序。
can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
develop_csdn_LGQ:
can't find gem cocoapods (>= 0.a) with executable pod (Gem::GemNotFoundException)
weixin_49849035:
iOS录音麦克风和系统震动的"冲突"
我是大白白: