dosubot[bot] commented on issue #31428:
URL: https://github.com/apache/superset/issues/31428#issuecomment-2540704792

   <!-- Answer -->
   To resolve the error "'scripts' is not recognized as an internal or external 
command" when running `npm run build-translation` on Windows using MINGW64, you 
can try the following:
   
   1. **Use Git Bash:** Ensure you are using Git Bash to run the command, as it 
provides a Unix-like environment on Windows. Open Git Bash, navigate to your 
project directory, and run `npm run build-translation`.
   
   2. **Windows Subsystem for Linux (WSL):** If Git Bash doesn't work, consider 
using WSL. Install WSL and run your commands in a Linux environment on Windows. 
This can help you execute shell scripts as if you were on a Unix-based system.
   
   3. **Convert to Batch Script:** Alternatively, you can convert the 
`po2json.sh` shell script to a Windows batch script. This involves translating 
the shell commands to their Windows equivalents and updating the 
`build-translation` script in `package.json` to point to this new batch file. 
This requires some knowledge of the commands used in `po2json.sh` and their 
Windows counterparts 
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/package.json)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   
   ---
   <sup>Help Dosu learn! Give it feedback: [Great 
Response](https://app.dosu.dev/response-feedback/ac510bb3-18fb-44af-8edf-ae70d2485a3b?feedback_type=great_response)
 | [Irrelevant 
Answer](https://app.dosu.dev/response-feedback/ac510bb3-18fb-44af-8edf-ae70d2485a3b?feedback_type=irrelevant_answer)
 | [Incorrect 
Sources](https://app.dosu.dev/response-feedback/ac510bb3-18fb-44af-8edf-ae70d2485a3b?feedback_type=incorrect_sources)
 | [Too 
Verbose](https://app.dosu.dev/response-feedback/ac510bb3-18fb-44af-8edf-ae70d2485a3b?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/ac510bb3-18fb-44af-8edf-ae70d2485a3b?feedback_type=hallucination)
 | 
[Other](https://app.dosu.dev/response-feedback/ac510bb3-18fb-44af-8edf-ae70d2485a3b?feedback_type=other)</sup>
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to