Closed ScottS2017 closed 3 months ago
If you're using cmd, try powershell. I had this same problem with cmd but it works in powershell.
@lostest4352 I found that using powershell also found this problem. Do you need to run the Powershell as Administrator?
i have the same issue, it always says the following:
command not found: rename
Try to add the flutter pub run or dart run before the commands of the readme like the following:
flutter pub run rename setAppName --targets ios,android --value "SmartCity Manager" dart run rename setAppName --targets ios,android --value "SmartCity Manager"
It worked for me.
Hello guys, @MuhamadHaydar thank you for the response and feedback I think it is related to some windows configuration but I just double check again to run via flutter pub run rename
or dart run rename
both are fine to go with please let me know if you are still having the same issue via this prefixes @ScottS2017 @teerasej
I also created Troubleshooting section in readme which may help others
Troubleshooting
Command Not Working on Windows
If you encounter issues running the
rename
command directly in Windows, especially from a non-administrator terminal, you might need to use an alternative command format. This issue can arise due to permission restrictions or path variable misconfigurations.Try executing the command using one of the following formats:
- Using Flutter:
flutter pub run rename <command> [arguments]
- Using Dart:
dart run rename <command> [arguments]
These alternative commands explicitly invoke the
rename
tool through the Dart or Flutter toolchain, which can bypass some of the path or permission issues encountered in certain Windows configurations.
Regardless of what command is attempted, the response is always that the syntax is incorrect. This also happens when using copy/paste commands out of the readme. I've deactivated and reactivated, it hasn't helped.