You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 6, 2021. It is now read-only.
Unfortunately I cannot verify the behavior on Windows.
Problem description:
This problem is pretty much the same as described in #148.
The README.md example shows that you should wrap commands in (double) quotes ("\) if you want environment variable(s) to apply to a series of commands: https://github.com/kentcdodds/cross-env#cross-env-vs-cross-env-shell. But this example doesn't work on MacOS 10.15.2.
Suggested solution:
Unfortunately I haven't had the time to dig into the codebase to propose a solution, other than that "it should work with double qoutes".
The text was updated successfully, but these errors were encountered:
@danielo515 No, not really any workaround. I mean, I use single quotes, but then the npm script won't work on Windows..
Maybe asking Windows users to switch script-shell to powershell could work for them? I.e. by following these guidelines, and then just use single quotes.
cross-env
version: 6.0.3node
version: 12.8.0npm
version: 6.11.3Put these rules into a package.json file with the
cross-env
node module installed.npm run greet
See what gets echoed.
This is what I see:
Unfortunately I cannot verify the behavior on Windows.
Problem description:
This problem is pretty much the same as described in #148.
The README.md example shows that you should wrap commands in (double) quotes (
"\
) if you want environment variable(s) to apply to a series of commands: https://github.com/kentcdodds/cross-env#cross-env-vs-cross-env-shell. But this example doesn't work on MacOS 10.15.2.Suggested solution:
Unfortunately I haven't had the time to dig into the codebase to propose a solution, other than that "it should work with double qoutes".
The text was updated successfully, but these errors were encountered: