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

Double quotation mark is ignored when used with npx (on windows) #219

Closed
cchangenot opened this issue Apr 7, 2020 · 1 comment
Closed

Comments

@cchangenot
Copy link

Double quotation mark is ignored when used with an "installed" version of concurrently.

With this simple package.json :

{
  "devDependencies": {
    "concurrently": "5.1.0"
  }
}

When I use npm install and then run this simple command

npx concurrently "dir /a"

I get an error because it's trying to run two commands ("dir" and "/a") instead of one ("dir /a").

[0]  R�pertoire de c:\projets\concurrently-test
[0]
[0] 07/04/2020  11:18    <DIR>          .
[0] 07/04/2020  11:18    <DIR>          ..
[0] 07/04/2020  11:14                 0 bar.txt
[0] 07/04/2020  11:14                 0 foo.txt
[0] 07/04/2020  11:18    <DIR>          node_modules
[0] 07/04/2020  11:18            17�352 package-lock.json
[0] 07/04/2020  11:17                64 package.json
[0]                4 fichier(s)           17�416 octets
[0]                3 R�p(s)  139�463�467�008 octets libres
[0] dir exited with code 0
[1] /a exited with code 1
  • When I remove the node_modules directory, it works properly
c:\projets\concurrently-test>npx concurrently "dir /a"
npx: installed 54 in 5.488s
[0]  Le volume dans le lecteur C n'a pas de nom.
[0]  Le num�ro de s�rie du volume est #
[0]
[0]  R�pertoire de c:\projets\concurrently-test
[0]
[0] 07/04/2020  11:36    <DIR>          .
[0] 07/04/2020  11:36    <DIR>          ..
[0] 07/04/2020  11:14                 0 bar.txt
[0] 07/04/2020  11:14                 0 foo.txt
[0] 07/04/2020  11:17                64 package.json
[0]                3 fichier(s)               64 octets
[0]                2 R�p(s)  139�512�700�928 octets libres
[0] dir /a exited with code 0
  • It also works properly when I use a globally installed concurrently
c:\projets\concurrently-test>concurrently "dir /a"
[0]  Le volume dans le lecteur C n'a pas de nom.
[0]  Le num�ro de s�rie du volume est #
[0]
[0]  R�pertoire de c:\projets\concurrently-test
[0]
[0] 07/04/2020  11:36    <DIR>          .
[0] 07/04/2020  11:36    <DIR>          ..
[0] 07/04/2020  11:14                 0 bar.txt
[0] 07/04/2020  11:14                 0 foo.txt
[0] 07/04/2020  11:17                64 package.json
[0]                3 fichier(s)               64 octets
[0]                2 R�p(s)  139�504�701�440 octets libres
[0] dir /a exited with code 0

Environment :

  • Windows 10
  • npm / npx 6.13.4
  • node v12.16.1
  • concurrently 5.1.0
@cchangenot
Copy link
Author

I am closing this bug as it seems to be a problem with npx.

See this bug : npm/npx#43

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

1 participant