Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with powershell #6

Open
xtrinch opened this issue Sep 11, 2019 · 1 comment
Open

Does not work with powershell #6

xtrinch opened this issue Sep 11, 2019 · 1 comment

Comments

@xtrinch
Copy link

xtrinch commented Sep 11, 2019

Package works for me with CMD, but not with powershell.

@laggingreflex
Copy link
Owner

Hmm, yeah I guess not. I'm not even sure if there is a way to make it work in Powershell.

The reason it works in cmd.exe is that when you run NODE_ENV=something something it tries to find if "NODE_ENV" is an executable. This module just creates that "NODE_ENV.cmd" executable.

In Powershell it seems it tries to run/find the whole NODE_ENV=something as an executable, which obviously can't be tricked into making an executable out of.

I've now put a note in the the README.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants