-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Windows: Add preliminary WSL support for npm and npx #253
Conversation
This commit would make it possible to run `npm` installed on Windows within Windows Subsystem for Linux. It is required, however, that the end of line characters of `npm` and `npx` be `\n` for the fix to take effect.
This commit would make it possible to run `npx` installed on Windows within Windows Subsystem for Linux. It is required, however, that the end of line characters of `npm` and `npx` be `\n` for the fix to take effect.
forwarded from nodejs/node#29627 |
Run the corresponding command prompt when Node for Windows is executed within WSL.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some minor nits, but otherwise no objection to this.
I think it's fine to put them in this PR, if you wanna add a commit for that. |
But how to? |
Also having opened Windows files in WSL without terminating the WSL process seems to write lock the files on the host machine, which might limit the use of this feature. But it might be of some use after all, say running a development server using the Windows executable within WSL. |
This commit would make it possible to run `npm` installed on Windows within Windows Subsystem for Linux. It is required, however, that the end of line characters of `npm` and `npx` be `\n` for the fix to take effect. PR-URL: #253 Credit: @infinnie Close: #253 Reviewed-by: @claudiahdz
This commit would make it possible to run `npm` installed on Windows within Windows Subsystem for Linux. It is required, however, that the end of line characters of `npm` and `npx` be `\n` for the fix to take effect. PR-URL: #253 Credit: @infinnie Close: #253 Reviewed-by: @claudiahdz
This commit would make it possible to run `npm` installed on Windows within Windows Subsystem for Linux. It is required, however, that the end of line characters of `npm` and `npx` be `\n` for the fix to take effect. PR-URL: #253 Credit: @infinnie Close: #253 Reviewed-by: @claudiahdz
This commit would make it possible to run `npm` installed on Windows within Windows Subsystem for Linux. It is required, however, that the end of line characters of `npm` and `npx` be `\n` for the fix to take effect. PR-URL: #253 Credit: @infinnie Close: #253 Reviewed-by: @claudiahdz
This commit would make it possible to run `npm` installed on Windows within Windows Subsystem for Linux. It is required, however, that the end of line characters of `npm` and `npx` be `\n` for the fix to take effect. PR-URL: #253 Credit: @infinnie Close: #253 Reviewed-by: @claudiahdz
This pull request would make it possible to run
npm
andnpx
installed with Node on Windows within Windows Subsystem for Linux.It is required, however, that the end of line characters of
npm
andnpx
be\n
for the fix to take effect, which might be worth a separate issue or pull request.