kentcdodds / cross-env

🔀 Cross platform setting of environment scripts

Home Page:https://www.npmjs.com/package/cross-env

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

URLs on Windows 10 are messed up

plaskevich opened this issue · comments

  • cross-env version: 5.2.0
  • node version: 10.19.0
  • npm (or yarn) version: 6.9.0

Relevant code or config
package.json :

"print": "cross-env-shell \"echo https://google.com\"",

What you did:

npm run print

What happened: The result was

https:\google.com

It seems there is some problem with slash conversion and it messes up the URLs.

Hi @plaskevich,

Try this:

"print": "cross-env-shell \"echo https:\/\/google.com\""

Good luck!