"fn run" command giving error on MAC OS - fn

I'm getting this error while using 'fn run' command on Mac.
Error during build. Run with --verbose flag to see what went wrong. eg: fn --verbose CMD

Related

zsh: command not found: flutter Oh my zsh p10k

Trying to run flutter doctor or any other command but I have this prompt
zsh: command not found: flutter
Prior the installation of oh my zsh and p10k, flutter commands were fine. I am in a Mac book air 2020 with M1 and my OS is Monterrey v12.5.1
Thanks!
Edit: Now works, my PATH was incomplete hehe

The terminal process failed to launch in VSCode (macOS)

When attempting to run/debug my VSCode extension, I'm getting the following error:
The terminal process "/usr/local/bin/zsh '-c', 'npm run watch'" failed to launch (exit code: 127).
I have set terminal.integrated.shell.osx to my zsh location in settings but it’s still failing for some reason. When I run /usr/local/bin/zsh '-c', 'npm run watch' from iTerm it runs fine.
How can I fix this error?
I'm also wondering if this is the reason all my breakpoints are unbound when I set them.

Why do I get the Error: ADB exited with exit code 1

If I want to start a simple app, which I used a few weeks ago without an error, I get an error.
That´s he error discription:
Launching lib\main.dart on SM J530F in debug mode...
Running Gradle task 'assembleDebug'...
Parameterformat falsch -
√ Built build\app\outputs\apk\debug\app-debug.apk.
Installing build\app\outputs\apk\app.apk...
Error: ADB exited with exit code 1
Performing Streamed Install
adb: failed to install C:\Users\Simon\Desktop\App Entwickeln\Projekte\test_app\build\app\outputs\apk\app.apk: Failure [INSTALL_FAILED_INSUFFICIENT_STORAGE]
Error launching application on SM J530F.
From: Solution to INSTALL_FAILED_INSUFFICIENT_STORAGE error on Android
Solution Run:
adb shell "pm uninstall " adb shell "rm -rf
/data/app/-*"
OR
Uninstall the app
Use your favorite method to delete BOTH:
/data/app/-1.apk
/data/app/-2.apk
Make sure nothing else blocks future installs in a similar way. In my
case I had a /data/app-lib/-1 directory lingering
around! In this case, an install to the SD card worked, and a
subsequent move to internal memory, too. (Creating
/data/app-lib/ without the -1 ending.)
For me the second solution worked!
I had the same Problem and the solution is deleating something from your device. The Problem is, that the storeg is full

Error when running livesync on device

I'm having trouble running sync on my iOS device using NativeScript with Angular2.
The following command works well:
tns run ios --device <device_id>
But when I try to run like this:
tns livesync ios --watch --device <device_id>
I get the following error:
***** Fatal JavaScript exception - application has been terminated. *****
Native stack trace:
1 0xd74aab -[TNSRuntime executeModule:referredBy:]
2 0xac487 main
registered for type RadSideDrawer.
3 0x1d0af50b <redacted>
JavaScript stack trace:
1 #file:///app/tns_modules/ui/core/dependency-observable.js:73:28
JavaScript error:
file:///app/tns_modules/ui/core/dependency-observable.js:73:28: JS ERROR Error: Property showOverNavigation already
The showOverNavigation is from the sidedrawer plugin that I'm using. But I have found other people on having the same kind of issue with other plugins.
I had the same error and I solve running the command:
tns run ios --release
with only the real device connected, that makes the app works without error.
Also in the new version of tns the command livesynch is now replaced by the 'run' command.
But with the '--release' part I cannot have all the console.log in the terminal visible.

Ionic Build Android Error Code 1

I created a brand new Ionic starter blank app. After I added the android platform, I did the "build android" command and receiving this:
"What went wrong:
Execution failed for task ':preDexDebug'.
com.android.ide.common.internal.LoggedErrorException: Failed to run command:"
With it saying "Error Code 1" and output some java stuff (version 52.0).
The last of it says "Error code 1 for command: cmd with args: /s /c "c:\users....\app\platforms\android\gradlew cdvBuildDebug..
Any ideas how to fix it? I've tried downloading gradle zip and changing it to local, removing and readding android platform, and nothing has worked.