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

   <!-- Greeting -->
   Hi @hdc-5643! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the 
superset team.
   
   <!-- Answer -->
   On Windows, `subprocess.run(["npm", ...])` can fail with `FileNotFoundError` 
if `npm` isn't in your system PATH, or because Windows sometimes requires 
`npm.cmd` instead of just `npm`. Try running `subprocess.run(["npm.cmd", 
"-v"])` or set `shell=True` in your subprocess call. Make sure Node.js and npm 
are installed and available in your PATH.
   
   If you keep running into Windows-specific issues, the community and 
maintainers recommend using Windows Subsystem for Linux (WSL) or Ubuntu for a 
smoother experience, since Superset does not officially support Windows and 
these environments avoid many filesystem and subprocess quirks you might hit on 
native Windows setups. Community contributions to improve Windows support are 
always welcome. For persistent npm or Node module errors, deleting 
`node_modules`, clearing Docker volumes, and rebuilding can also help in 
related scenarios 
[citation](https://github.com/apache/superset/issues/34225#issuecomment-3090116561).
   
   If `superset-extensions` is maintained in a separate repository, check there 
for any Windows-specific fixes or updates.
   
   
   <!-- Dosu Comment Footer -->
   *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*
   
   ---
   <sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/d6101e9e-5a27-4d45-a092-bd1915c9fbe7?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/d6101e9e-5a27-4d45-a092-bd1915c9fbe7?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/d6101e9e-5a27-4d45-a092-bd1915c9fbe7?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/d6101e9e-5a27-4d45-a092-bd1915c9fbe7?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/d6101e9e-5a27-4d45-a092-bd1915c9fbe7?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/d6101e9e-5a27-4d45-a092-bd1915c9fbe7?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/d6101e9e-5a27-4d45-a092-bd1915c9fbe7?feedback_type=other)</sup>
   
   [![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=On%20Windows%2C%20%60subprocess.run%28%5B%22npm%22%2C%20...%5D%29%60%20can%20fail%20with%20%60FileNotFoundError%60%20if%20%60npm%60%20isn%27t%20in%20your%20system%20PATH%2C%20or%20because%20Windows%20sometimes%20requires%20%60npm.cmd%60%20instead%20of%20just%20%60npm%60.%20Try%20running%20%60subprocess.run%28%5B%22npm.cmd%22%2C%20%22-v%22%5D%29%60%20or%20set%20%60shell%3DTrue%60%20in%20your%20subprocess%20call.%20Make%20sure%20Node.js%20and%20npm%20are%20installed%20and%20available%20in%20your%20PATH.%0A%0AIf%20you%20keep%20running%20into%20Windows-specific%20issues%2C%20the%20community%20and%20maintainers%20recommend%20using%20Windows%20Subsystem%20for%20Linux%20%28WSL%29%20or%20Ubuntu%20for%20a%20smoother%20experience%2C%20since%20Superset%20does
 
%20not%20officially%20support%20Windows%20and%20these%20environments%20avoid%20many%20filesystem%20and%20subprocess%20quirks%20you%20might%20hit%20on%20native%20Windows%20setups.%20Community%20contributions%20to%20improve%20Windows%20support%20are%20always%20welcome.%20For%20persistent%20npm%20or%20Node%20module%20errors%2C%20deleting%20%60node_modules%60%2C%20clearing%20Docker%20volumes%2C%20and%20rebuilding%20can%20also%20help%20in%20related%20scenarios%C2%A0%5Bcitation%5D%28https%3A//github.com/apache/superset/issues/34225%23issuecomment-3090116561%29.%0A%0AIf%20%60superset-extensions%60%20is%20maintained%20in%20a%20separate%20repository%2C%20check%20there%20for%20any%20Windows-specific%20fixes%20or%20updates.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20t
 his%20issue!&url=https%3A//github.com/apache/superset/issues/37559)


-- 
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